Skip to content

Tracking issue for feature extern_crate_item_prelude #55599

Closed
@petrochenkov

Description

@petrochenkov

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.

Metadata

Metadata

Assignees

Labels

A-edition-2018Area: The 2018 editionB-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-rust_2018_preview`#![feature(rust_2018_preview)]`T-langRelevant to the language team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions