Skip to content

Commit

Permalink
mention that extern absolute paths should gate on rust 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Apr 20, 2018
1 parent f56c61f commit 11c62de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3258,6 +3258,8 @@ impl<'a> Resolver<'a> {
let prev_name = path[0].name;
if prev_name == keywords::Extern.name() ||
prev_name == keywords::CrateRoot.name() &&
// Note: When this feature stabilizes, this should
// be gated on sess.rust_2018()
self.session.features_untracked().extern_absolute_paths {
// `::extern_crate::a::b`
let crate_id = self.crate_loader.process_path_extern(name, ident.span);
Expand Down

0 comments on commit 11c62de

Please sign in to comment.