File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 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> {
136136 /// When `is_collectin_in_band_lifetimes` is true, each lifetime is checked
137137 /// against this list to see if it is already in-scope, or if a definition
138138 /// needs to be created for it.
139+ ///
140+ /// We always store a `modern()` version of the param-name in this
141+ /// vector.
139142 in_scope_lifetimes : Vec < ParamName > ,
140143
141144 current_module : NodeId ,
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl LoweringContext<'_> {
123123 _ => & [ ] ,
124124 } ;
125125 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 ( ) ) ,
127127 _ => None ,
128128 } ) ;
129129 self . in_scope_lifetimes . extend ( lt_def_names) ;
You can’t perform that action at this time.
0 commit comments