-
Notifications
You must be signed in to change notification settings - Fork 13.3k
be more robust to bogus items in struct patterns/constructors #27833
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
Conversation
4ec8172
to
b87c292
Compare
// isn't a structure! | ||
``` | ||
// or even simpler, if the name doesn't refer to a structure at all. | ||
let t = u32 { value: 4 }; // error: `u32` does not name a structure.``` |
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.
Shouldn't the closing ``` be on its own line?
r=me with nit fixed (if necessary). |
This fixes the crazy "transparent aliases" bug, which I hope nobody relied on.
Added commits for #27831 @alexcrichton: could you do a crater run? |
Hm, looks like this may not bootstrap right now? https://tools.taskcluster.net/task-inspector/#Y9JMVRF4QKu6-yJwv8x3Wg/0 |
fixed that, sorry. |
c2187ee
to
9415c70
Compare
also, make sure this is tested.
9415c70
to
44f4106
Compare
Crater reports zero regressions (belatedly) |
r? @eddyb |
@bors r+ |
📌 Commit 44f4106 has been approved by |
Fixes #27815
r? @eddyb