-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Emit specific error for struct literal in conditions #59981
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
aa2f15b
to
1a191c9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c9c441c
to
e374041
Compare
e374041
to
9c42ec3
Compare
Added one commit fixing the case with boolean literals and also improving a e s t h e t i c s. |
@bors r+ |
📌 Commit 9c42ec3 has been approved by |
@petrochenkov neat |
…ochenkov Emit specific error for struct literal in conditions Fix rust-lang#59962, fix rust-lang#51311.
This comment has been minimized.
This comment has been minimized.
7005f9c
to
88e0c6a
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@petrochenkov I am aware of the hackiness of the approach 😬
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Removing the changes after the review was made, rebasing to fix merge conflicts and posting follow up PR for easier review. |
99e7c97
to
aa393b0
Compare
@bors r=petrochenkov rebased |
📌 Commit aa393b0 has been approved by |
☀️ Test successful - checks-travis, status-appveyor |
Fix #59962, fix #51311.