-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-edition-2018Area: The 2018 editionArea: The 2018 editionB-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-rust_2018_preview`#![feature(rust_2018_preview)]``#![feature(rust_2018_preview)]`T-langRelevant to the language teamRelevant to the language team
Description
With this feature extern crate foo as bar;
item placed into the crate root puts the name bar
into extern prelude. This has the next effects:
- The name is in scope in the whole crate, including inner modules, like other prelude names.
- On 2018 edition imports can refer to that name
use bar::zzz;
oruse ::bar::zzz;
, plus non-import absolute paths can refer to it as welllet z = ::bar::zzz;
.
More details are available on the implementation PR - #54658.
Metadata
Metadata
Assignees
Labels
A-edition-2018Area: The 2018 editionArea: The 2018 editionB-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-rust_2018_preview`#![feature(rust_2018_preview)]``#![feature(rust_2018_preview)]`T-langRelevant to the language teamRelevant to the language team