File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,9 @@ pub struct LoweringContext<'a> {
136
136
/// When `is_collectin_in_band_lifetimes` is true, each lifetime is checked
137
137
/// against this list to see if it is already in-scope, or if a definition
138
138
/// needs to be created for it.
139
+ ///
140
+ /// We always store a `modern()` version of the param-name in this
141
+ /// vector.
139
142
in_scope_lifetimes : Vec < ParamName > ,
140
143
141
144
current_module : NodeId ,
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl LoweringContext<'_> {
123
123
_ => & [ ] ,
124
124
} ;
125
125
let lt_def_names = parent_generics. iter ( ) . filter_map ( |param| match param. kind {
126
- hir:: GenericParamKind :: Lifetime { .. } => Some ( param. name ) ,
126
+ hir:: GenericParamKind :: Lifetime { .. } => Some ( param. name . modern ( ) ) ,
127
127
_ => None ,
128
128
} ) ;
129
129
self . in_scope_lifetimes . extend ( lt_def_names) ;
You can’t perform that action at this time.
0 commit comments