Iterate def_ids map backwards to try first the latest mappings (it's a stack)
This commit is contained in:
parent
e6478a3724
commit
457ff7c56c
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ impl ResolverAstLoweringExt for ResolverAstLowering {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_remapped_def_id(&self, mut local_def_id: LocalDefId) -> LocalDefId {
|
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) {
|
if let Some(r) = map.get(&local_def_id) {
|
||||||
debug!("def_id_remapper: remapping from `{local_def_id:?}` to `{r:?}`");
|
debug!("def_id_remapper: remapping from `{local_def_id:?}` to `{r:?}`");
|
||||||
local_def_id = *r;
|
local_def_id = *r;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue