about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDouglas Campos <qmx@qmx.me>2018-08-10 22:59:11 +0000
committerDouglas Campos <qmx@qmx.me>2018-08-16 19:23:04 +0000
commit34f6103961d698a473cc9789494c19caece3cc52 (patch)
tree19e970fac6f9a8a9b8be796651ec32b35cd240b4 /src
parent0138d6d02da420276b99188e0a3a5b481c2ca8f7 (diff)
downloadrust-34f6103961d698a473cc9789494c19caece3cc52.tar.gz
rust-34f6103961d698a473cc9789494c19caece3cc52.zip
properly prefix with crate:: modules that are extern but not on the prelude
Diffstat (limited to 'src')
-rw-r--r--src/librustc_resolve/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index 6bbe31564a3..bc4470cfa4a 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -4269,7 +4269,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
                     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)