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

macros: improve shadowing checks #37506

Merged
merged 3 commits into from
Nov 7, 2016

Conversation

jseyfried
Copy link
Contributor

This PR improves macro-expanded shadowing checks to work with out-of-(pre)order expansion.

Out-of-order expansion became possible in #37084, so this technically a [breaking-change] for nightly.
The regression test from this PR is an example of code that would break.

r? @nrc

@jseyfried jseyfried changed the title Improve shadowing checks macros: improve shadowing checks Nov 2, 2016
@nrc
Copy link
Member

nrc commented Nov 7, 2016

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 7, 2016

📌 Commit 1e6c275 has been approved by nrc

@bors
Copy link
Contributor

bors commented Nov 7, 2016

⌛ Testing commit 1e6c275 with merge 09fc1af...

bors added a commit that referenced this pull request Nov 7, 2016
macros: improve shadowing checks

This PR improves macro-expanded shadowing checks to work with out-of-(pre)order expansion.

Out-of-order expansion became possible in #37084, so this technically a [breaking-change] for nightly.
The regression test from this PR is an example of code that would break.

r? @nrc
@bors bors merged commit 1e6c275 into rust-lang:master Nov 7, 2016
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.

3 participants