diff options
| author | Maxim Zholobak <ghostcheka@gmail.com> | 2017-11-23 21:09:27 +0200 |
|---|---|---|
| committer | Maxim Zholobak <ghostcheka@gmail.com> | 2017-11-23 21:09:49 +0200 |
| commit | a3686c685a10de7b56cacf998a9e7eabc622787b (patch) | |
| tree | cb32f1924830bf95dda423be5d3a9c769c313979 | |
| parent | 39f848efb010447621278f90a5241c8657fdccc8 (diff) | |
| download | rust-a3686c685a10de7b56cacf998a9e7eabc622787b.tar.gz rust-a3686c685a10de7b56cacf998a9e7eabc622787b.zip | |
Use for_each_child_stable in find_module
| -rw-r--r-- | src/librustc_resolve/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index fb9ba9a09bb..ec0c0e04a91 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -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 (); |
