Skip to content

Commit 7dbd2e2

Browse files
committed
Remove one use of BrAnon(Some(_)).
1 parent c18773a commit 7dbd2e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_hir_typeck/src/generator_interior/mod.rs

+1-1
Original file line numberDiff line numberDiff 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 {

tests/ui/generic-associated-types/bugs/issue-100013.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ LL | | async {}.await; // a yield point
6262
LL | | }
6363
| |_____^
6464
|
65-
note: the lifetime defined here...
65+
note: the lifetime `'b` defined here...
6666
--> $DIR/issue-100013.rs:28:18
6767
|
6868
LL | 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
|
7373
LL | fn call3<'a: 'b, 'b, I: FutureIterator>() -> impl Send {

0 commit comments

Comments
 (0)