Skip to content
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

Merged
merged 3 commits into from
Apr 6, 2016

Conversation

jseyfried
Copy link
Contributor

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

@jseyfried
Copy link
Contributor Author

cc @nikomatsakis @petrochenkov

@nrc
Copy link
Member

nrc commented Apr 4, 2016

@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!

@jseyfried
Copy link
Contributor Author

@nrc No prob, just sent you an email.

@pnkfelix
Copy link
Member

pnkfelix commented Apr 5, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Apr 5, 2016

📌 Commit 432eb8a has been approved by pnkfelix

@bors
Copy link
Contributor

bors commented Apr 6, 2016

⌛ Testing commit 432eb8a with merge 772c600...

bors added a commit that referenced this pull request Apr 6, 2016
[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
@bors bors merged commit 432eb8a into rust-lang:master Apr 6, 2016
@Manishearth
Copy link
Member

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.

bors added a commit that referenced this pull request Apr 6, 2016
Batch up all plugin breaking changes

#32688 already landed so we should get this into the same nightly.

cc #31645
@jseyfried jseyfried deleted the ast_groundwork_for_1422 branch April 8, 2016 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants