File tree 2 files changed +3
-3
lines changed
compiler/rustc_hir_typeck/src/generator_interior
tests/ui/generic-associated-types/bugs
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ pub fn resolve_interior<'a, 'tcx>(
258
258
}
259
259
// FIXME: these should use `BrNamed`
260
260
ty:: ReEarlyBound ( region) => {
261
- mk_bound_region ( ty:: BrAnon ( Some ( fcx . tcx . def_span ( region. def_id ) ) ) )
261
+ mk_bound_region ( ty:: BrNamed ( region. def_id , region . name ) )
262
262
}
263
263
ty:: ReLateBound ( _, ty:: BoundRegion { kind, .. } )
264
264
| ty:: ReFree ( ty:: FreeRegion { bound_region : kind, .. } ) => match kind {
Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ LL | | async {}.await; // a yield point
62
62
LL | | }
63
63
| |_____^
64
64
|
65
- note: the lifetime defined here...
65
+ note: the lifetime `'b` defined here...
66
66
--> $DIR/issue-100013.rs:28:18
67
67
|
68
68
LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
69
69
| ^^
70
- note: ...must outlive the lifetime defined here
70
+ note: ...must outlive the lifetime `'a` defined here
71
71
--> $DIR/issue-100013.rs:28:10
72
72
|
73
73
LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
You can’t perform that action at this time.
0 commit comments