Skip to content

Commit

Permalink
rustc: Make x-ray resolution work with non-legacy-exports
Browse files Browse the repository at this point in the history
Code generated for the test runner needs to break visibility rules
  • Loading branch information
brson committed Sep 22, 2012
1 parent 3d59ac3 commit 60a1497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustc/middle/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 60a1497

Please sign in to comment.