Skip to content

Commit 11c62de

Browse files
committed
mention that extern absolute paths should gate on rust 2018
1 parent f56c61f commit 11c62de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_resolve/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3258,6 +3258,8 @@ impl<'a> Resolver<'a> {
32583258
let prev_name = path[0].name;
32593259
if prev_name == keywords::Extern.name() ||
32603260
prev_name == keywords::CrateRoot.name() &&
3261+
// Note: When this feature stabilizes, this should
3262+
// be gated on sess.rust_2018()
32613263
self.session.features_untracked().extern_absolute_paths {
32623264
// `::extern_crate::a::b`
32633265
let crate_id = self.crate_loader.process_path_extern(name, ident.span);

0 commit comments

Comments
 (0)