Skip to content

Commit

Permalink
properly prefix with crate:: modules that are extern but not on the p…
Browse files Browse the repository at this point in the history
…relude
  • Loading branch information
qmx committed Aug 16, 2018
1 parent 0138d6d commit 34f6103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Expand Up @@ -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)

Expand Down

0 comments on commit 34f6103

Please sign in to comment.