Skip to content

Commit 60a1497

Browse files
committed
rustc: Make x-ray resolution work with non-legacy-exports
Code generated for the test runner needs to break visibility rules
1 parent 3d59ac3 commit 60a1497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4204,7 +4204,7 @@ impl Resolver {
42044204
match containing_module.children.find(name) {
42054205
Some(child_name_bindings) => {
42064206
match (*child_name_bindings).def_for_namespace(namespace) {
4207-
Some(def) if def.privacy == Public => {
4207+
Some(def) if def.privacy == Public || xray == Xray => {
42084208
// Found it. Stop the search here.
42094209
return ChildNameDefinition(def.def);
42104210
}

0 commit comments

Comments
 (0)