-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Support using Self
or projections inside an RPIT/async fn
#103491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b956509
5fc261e
b676fc4
47de11f
b77674d
9423406
af06960
9e9f5b1
da9dca7
49a5aa4
c5949c8
d470ac9
3afec24
b552965
b37feca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1338,8 +1338,8 @@ impl<'tcx> OpaqueHiddenType<'tcx> { | |
// HACK: The HIR lowering for async fn does not generate | ||
// any `+ Captures<'x>` bounds for the `impl Future<...>`, so all async fns with lifetimes | ||
// would now fail to compile. We should probably just make hir lowering fill this in properly. | ||
OpaqueTyOrigin::AsyncFn(_) => map.collect(), | ||
OpaqueTyOrigin::FnReturn(_) | OpaqueTyOrigin::TyAlias => { | ||
OpaqueTyOrigin::FnReturn(_) | OpaqueTyOrigin::AsyncFn(_) => map.collect(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue is that |
||
OpaqueTyOrigin::TyAlias => { | ||
// Opaque types may only use regions that are bound. So for | ||
// ```rust | ||
// type Foo<'a, 'b, 'c> = impl Trait<'a> + 'b; | ||
|
Uh oh!
There was an error while loading. Please reload this page.