File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,10 @@ impl ResolverAstLoweringExt for ResolverAstLowering {
210
210
self . builtin_macro_kinds . get ( & def_id) . copied ( ) . unwrap_or ( MacroKind :: Bang )
211
211
}
212
212
213
- /// Push a remapping into the top-most map. Panics if no map has been pushed.
213
+ /// Push a remapping into the top-most map.
214
+ /// Panics if no map has been pushed.
215
+ /// Remapping is used when creating lowering `-> impl Trait` return
216
+ /// types to create the resulting opaque type.
214
217
#[ tracing:: instrument( level = "debug" , skip( self ) ) ]
215
218
fn record_def_id_remap ( & mut self , from : LocalDefId , to : LocalDefId ) {
216
219
self . generics_def_id_map . last_mut ( ) . expect ( "no map pushed" ) . insert ( from, to) ;
You can’t perform that action at this time.
0 commit comments