-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for feature extern_crate_self
#56409
Comments
This would be excellent. Is there something blocking stabilization here? The "work-around" described in a related issue gets significantly more awkward if you're expanding proc-macros in doctests. See my recent edition upgrade on |
I don't think so, someone just needs to submit a stabilization PR, and then it should go through the "official" approval by the lang team. |
…, r=Centril Stabilize extern_crate_self Fixes rust-lang#56409
With this feature
extern crate NAME as RENAME;
now acceptsNAME
=self
and interprets it as referring to the local crate.As with other
extern crate
items,RENAME
in this case gets into extern prelude and therefore can be used from absolute paths and imports on 2018 edition.The feature's primary purpose is to resolve #54647 and support migration of proc macro crates to 2018 edition.
Implementation PR - #55275.
The text was updated successfully, but these errors were encountered: