mention that extern absolute paths should gate on rust 2018

This commit is contained in:
Manish Goregaokar 2018-04-20 15:04:07 -07:00
parent f56c61face
commit 11c62de242

View file

@ -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);