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

if- and while-let-chains, take 2 - edition changes #53854

Merged
merged 3 commits into from
Sep 10, 2018

Conversation

davidtwco
Copy link
Member

@davidtwco davidtwco commented Aug 31, 2018

Part of #53668.

r? @nikomatsakis

With eRFC 2497, previously accepted ambigious syntax regarding use of
`&&` and `||` in if-let and while-let statements should now warn
or error depending on the edition.

This commit takes a naive approach to detecting ambigious use of `&&`
or `||` and will probably need fine tuned to handle all cases.
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 31, 2018
src/libsyntax/parse/parser.rs Outdated Show resolved Hide resolved
@nikomatsakis
Copy link
Contributor

cc @Centril -- so do you feel there is no need for a crater run here, given @SergioBenitez's testing?

@Centril
Copy link
Contributor

Centril commented Aug 31, 2018

@nikomatsakis afair @SergioBenitez's testing was some time ago, so if we have the time for crater (we do right?) it could still be better safe than sorry to do a crater run; but I would also add that I don't feel strongly either way.

@rust-highfive

This comment has been minimized.

@davidtwco
Copy link
Member Author

Oops, forgot to update the test output. Thought I'd forgot something. 🤦‍♂️

@nikomatsakis
Copy link
Contributor

@bors try

@bors
Copy link
Contributor

bors commented Sep 4, 2018

⌛ Trying commit 8c92cbe with merge 51ff957df5095d92d1d3d4682207ee8b7ad408a8...

@bors
Copy link
Contributor

bors commented Sep 4, 2018

☀️ Test successful - status-travis
State: approved= try=True

@nikomatsakis
Copy link
Contributor

@craterbot run start=master#1c2e17f4e3a2070a7f703f51e29c1c388ef703b6 end=try#51ff957df5095d92d1d3d4682207ee8b7ad408a8 mode=check-only

@craterbot
Copy link
Collaborator

👌 Experiment pr-53854 created and queued.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 5, 2018
@craterbot
Copy link
Collaborator

🚧 Experiment pr-53854 is now running on agent aws-2.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Collaborator

🎉 Experiment pr-53854 is completed!
📰 Open the full report.

⚠️ If you notice any spurious failure please add them to the blacklist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. labels Sep 6, 2018
@Centril
Copy link
Contributor

Centril commented Sep 6, 2018

The good news is that crater found zero real regressions :)

@nikomatsakis nikomatsakis changed the title WIP: if- and while-let-chains, take 2 - edition changes if- and while-let-chains, take 2 - edition changes Sep 6, 2018
@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Sep 7, 2018

📌 Commit 0a8cf67 has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 7, 2018
@bors
Copy link
Contributor

bors commented Sep 8, 2018

⌛ Testing commit 0a8cf67 with merge 748cca41f7fbcb0e018e05935b76172435189af6...

@bors
Copy link
Contributor

bors commented Sep 8, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 8, 2018
@kennytm
Copy link
Member

kennytm commented Sep 9, 2018

@bors retry

note: C:/projects/rust/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file C:\\projects\\rust\\build\\i686-pc-windows-gnu\\test\\ui\\issues\\issue-19100\\a.exe: Permission denied

Feels spurious.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 9, 2018
@bors
Copy link
Contributor

bors commented Sep 10, 2018

⌛ Testing commit 0a8cf67 with merge fb945f0...

bors added a commit that referenced this pull request Sep 10, 2018
if- and while-let-chains, take 2 - edition changes

Part of #53668.

r? @nikomatsakis
@bors
Copy link
Contributor

bors commented Sep 10, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing fb945f0 to master...

@bors bors merged commit 0a8cf67 into rust-lang:master Sep 10, 2018
@davidtwco davidtwco deleted the issue-53668 branch September 10, 2018 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants