We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece5245 commit bf1c7daCopy full SHA for bf1c7da
compiler/rustc_ast_lowering/src/lib.rs
@@ -210,7 +210,10 @@ impl ResolverAstLoweringExt for ResolverAstLowering {
210
self.builtin_macro_kinds.get(&def_id).copied().unwrap_or(MacroKind::Bang)
211
}
212
213
- /// Push a remapping into the top-most map. Panics if no map has been pushed.
+ /// 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.
217
#[tracing::instrument(level = "debug", skip(self))]
218
fn record_def_id_remap(&mut self, from: LocalDefId, to: LocalDefId) {
219
self.generics_def_id_map.last_mut().expect("no map pushed").insert(from, to);
0 commit comments