Skip to content

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

Merged
merged 4 commits into from
Aug 17, 2015

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Aug 14, 2015

Fixes #27815

r? @eddyb

@arielb1 arielb1 force-pushed the robust-construction branch from 4ec8172 to b87c292 Compare August 14, 2015 14:07
// 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.```
Copy link
Member

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?

@eddyb
Copy link
Member

eddyb commented Aug 14, 2015

r=me with nit fixed (if necessary).

This fixes the crazy "transparent aliases" bug, which I hope nobody
relied on.
@arielb1
Copy link
Contributor Author

arielb1 commented Aug 15, 2015

Added commits for #27831

@alexcrichton: could you do a crater run?

@alexcrichton
Copy link
Member

Hm, looks like this may not bootstrap right now? https://tools.taskcluster.net/task-inspector/#Y9JMVRF4QKu6-yJwv8x3Wg/0

@arielb1
Copy link
Contributor Author

arielb1 commented Aug 15, 2015

fixed that, sorry.

@arielb1 arielb1 force-pushed the robust-construction branch 2 times, most recently from c2187ee to 9415c70 Compare August 16, 2015 08:32
@arielb1 arielb1 force-pushed the robust-construction branch from 9415c70 to 44f4106 Compare August 17, 2015 15:22
@alexcrichton
Copy link
Member

Crater reports zero regressions (belatedly)

@arielb1
Copy link
Contributor Author

arielb1 commented Aug 17, 2015

r? @eddyb

@eddyb
Copy link
Member

eddyb commented Aug 17, 2015

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 17, 2015

📌 Commit 44f4106 has been approved by eddyb

bors added a commit that referenced this pull request Aug 17, 2015
@bors
Copy link
Collaborator

bors commented Aug 17, 2015

⌛ Testing commit 44f4106 with merge 6d99272...

@bors bors merged commit 44f4106 into rust-lang:master Aug 17, 2015
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.

4 participants