File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_hir_typeck/src/generator_interior
tests/ui/generic-associated-types/bugs Expand file tree Collapse file tree 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>(
258258 }
259259 // FIXME: these should use `BrNamed`
260260 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 ) )
262262 }
263263 ty:: ReLateBound ( _, ty:: BoundRegion { kind, .. } )
264264 | 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
6262LL | | }
6363 | |_____^
6464 |
65- note: the lifetime defined here...
65+ note: the lifetime `'b` defined here...
6666 --> $DIR/issue-100013.rs:28:18
6767 |
6868LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
6969 | ^^
70- note: ...must outlive the lifetime defined here
70+ note: ...must outlive the lifetime `'a` defined here
7171 --> $DIR/issue-100013.rs:28:10
7272 |
7373LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {
You can’t perform that action at this time.
0 commit comments