-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[breaking-batch] Add support for pub(restricted)
syntax in the AST
#32688
Conversation
@jseyfried sorry to ping you on a random PR, but could you email me - my GH username at mozilla.com? I'd like to email you about name resolution plans. Thanks! |
@nrc No prob, just sent you an email. |
@bors r+ |
📌 Commit 432eb8a has been approved by |
[breaking-batch] Add support for `pub(restricted)` syntax in the AST This PR allows the AST to represent the `pub(restricted)` syntax from RFC 1422 (cc #32409). More specifically, it makes `ast::Visibility` non-`Copy` and adds two new variants, `Visibility::Crate` for `pub(crate)` and `Visitibility::Restricted { path: P<Path>, id: NodeId }` for `pub(path)`. plugin-[breaking-change] cc #31645 r? @pnkfelix
please wait before merging breaking-batch changes. Leave a note on #31645 or otherwise ping me if something needs merging. We have a couple of breaking changes pending as well as an issue which needs a breaking change to fix which I was waiting on. I'll try to bundle everything into the latest nightly now. |
This PR allows the AST to represent the
pub(restricted)
syntax from RFC 1422 (cc #32409).More specifically, it makes
ast::Visibility
non-Copy
and adds two new variants,Visibility::Crate
forpub(crate)
andVisitibility::Restricted { path: P<Path>, id: NodeId }
forpub(path)
.plugin-[breaking-change] cc #31645
r? @pnkfelix