Iterate def_ids map backwards to try first the latest mappings (it's a stack)
This commit is contained in:
parent
e6478a3724
commit
457ff7c56c
@ -220,7 +220,7 @@ impl ResolverAstLoweringExt for ResolverAstLowering {
|
||||
}
|
||||
|
||||
fn get_remapped_def_id(&self, mut local_def_id: LocalDefId) -> LocalDefId {
|
||||
for map in &self.generics_def_id_map {
|
||||
for map in self.generics_def_id_map.iter().rev() {
|
||||
if let Some(r) = map.get(&local_def_id) {
|
||||
debug!("def_id_remapper: remapping from `{local_def_id:?}` to `{r:?}`");
|
||||
local_def_id = *r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user