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; or use ::bar::zzz;, plus non-import absolute paths can refer to it as well let z = ::bar::zzz;.
More details are available on the implementation PR - #54658.
With this feature
extern crate foo as bar;item placed into the crate root puts the namebarinto extern prelude. This has the next effects: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.