]> git.lizzy.rs Git - rust.git/commitdiff
properly prefix with crate:: modules that are extern but not on the prelude
authorDouglas Campos <qmx@qmx.me>
Fri, 10 Aug 2018 22:59:11 +0000 (22:59 +0000)
committerDouglas Campos <qmx@qmx.me>
Thu, 16 Aug 2018 19:23:04 +0000 (19:23 +0000)
src/librustc_resolve/lib.rs

index 6bbe31564a35a6069c015b2aa57fc113de1f06db..bc4470cfa4a26c23d069aa0adf0b809d1cb6049e 100644 (file)
@@ -4269,7 +4269,7 @@ fn lookup_import_candidates_from_module<FilterFn>(&mut self,
                     if filter_fn(name_binding.def()) {
                         // create the path
                         let mut segms = path_segments.clone();
-                        if self.session.rust_2018() && !in_module_is_extern {
+                        if self.session.rust_2018() {
                             // crate-local absolute paths start with `crate::` in edition 2018
                             // FIXME: may also be stabilized for Rust 2015 (Issues #45477, #44660)