Skip to content

Commit 34f6103

Browse files
committed
properly prefix with crate:: modules that are extern but not on the prelude
1 parent 0138d6d commit 34f6103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4269,7 +4269,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
42694269
if filter_fn(name_binding.def()) {
42704270
// create the path
42714271
let mut segms = path_segments.clone();
4272-
if self.session.rust_2018() && !in_module_is_extern {
4272+
if self.session.rust_2018() {
42734273
// crate-local absolute paths start with `crate::` in edition 2018
42744274
// FIXME: may also be stabilized for Rust 2015 (Issues #45477, #44660)
42754275

0 commit comments

Comments
 (0)