Skip to content

[breaking-batch] Add support for pub(restricted) syntax in the AST#32688

Merged
bors merged 3 commits into
rust-lang:masterfrom
jseyfried:ast_groundwork_for_1422
Apr 6, 2016
Merged

[breaking-batch] Add support for pub(restricted) syntax in the AST#32688
bors merged 3 commits into
rust-lang:masterfrom
jseyfried:ast_groundwork_for_1422

Conversation

@jseyfried

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

cc @nikomatsakis @petrochenkov

@nrc

nrc commented Apr 4, 2016

Copy link
Copy Markdown
Member

@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
Copy Markdown
Contributor Author

@nrc No prob, just sent you an email.

@pnkfelix

pnkfelix commented Apr 5, 2016

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Apr 5, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 432eb8a has been approved by pnkfelix

@bors

bors commented Apr 6, 2016

Copy link
Copy Markdown
Collaborator

⌛ 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
Copy Markdown
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