fix transitive imported aliases not being passed along

This commit is contained in:
Folkert 2022-03-20 00:03:20 +01:00
parent 147ab87e9c
commit 45863769eb
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -209,7 +209,8 @@ fn start_phase<'a>(
), ),
Some(new) => { Some(new) => {
aliases.extend(new.iter().filter_map(|(s, (exposed, a))| { aliases.extend(new.iter().filter_map(|(s, (exposed, a))| {
if *exposed { // only pass this on if it's exposed, or the alias is a transitive import
if *exposed || s.module_id() != *imported {
Some((*s, a.clone())) Some((*s, a.clone()))
} else { } else {
None None