rustc: Make x-ray resolution work with non-legacy-exports
Code generated for the test runner needs to break visibility rules
This commit is contained in:
parent
3d59ac3a19
commit
60a1497ebb
1 changed files with 1 additions and 1 deletions
|
@ -4204,7 +4204,7 @@ impl Resolver {
|
|||
match containing_module.children.find(name) {
|
||||
Some(child_name_bindings) => {
|
||||
match (*child_name_bindings).def_for_namespace(namespace) {
|
||||
Some(def) if def.privacy == Public => {
|
||||
Some(def) if def.privacy == Public || xray == Xray => {
|
||||
// Found it. Stop the search here.
|
||||
return ChildNameDefinition(def.def);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue