Skip to content

Commit

Permalink
Use for_each_child_stable in find_module
Browse files Browse the repository at this point in the history
  • Loading branch information
Menschenkindlein committed Nov 23, 2017
1 parent 39f848e commit a3686c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Expand Up @@ -3526,7 +3526,7 @@ impl<'a> Resolver<'a> {

self.populate_module_if_necessary(in_module);

in_module.for_each_child(|ident, _, name_binding| {
in_module.for_each_child_stable(|ident, _, name_binding| {
// abort if the module is already found
if let Some(_) = result {
return ();
Expand Down

0 comments on commit a3686c6

Please sign in to comment.