Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFix various bugs around empty structs and patterns #29383
Conversation
rust-highfive
assigned
pnkfelix
Oct 26, 2015
This comment has been minimized.
This comment has been minimized.
|
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
Heh, yeah, I like to do |
This comment has been minimized.
This comment has been minimized.
|
This PR looks fine to me. It does need a crater run. (I have not yet successfully run crater but I'm wiling to give it another shot.) |
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:empstr
branch
from
040ad0f
to
40717ca
Nov 2, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
This comment has been minimized.
This comment has been minimized.
|
@petrochenkov great; I am seeing if I can do a crater run now with it. |
alexcrichton
added
the
S-waiting-on-crater
label
Nov 2, 2015
This comment has been minimized.
This comment has been minimized.
|
I've made a new |
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:empstr
branch
from
40717ca
to
b7f8311
Nov 4, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
petrochenkov
referenced this pull request
Nov 4, 2015
Closed
Cannot derive Clone when using 'braced_empty_structs' #29548
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@petrochenkov thanks for rebasing |
This comment has been minimized.
This comment has been minimized.
|
I did a crater run (on the revisions from before the rebase).
crater results here: https://gist.github.com/pnkfelix/4b800d1faf17eb494d8e Update: I just looked at those results again, and realized that, if I understand them correctly, they are saying that all crates failed to build on both of my compilers. :( I'm not quite sure what I did wrong, if anything. I'll try a new run on the rebased versions. |
pnkfelix
removed
the
S-waiting-on-crater
label
Nov 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Update: see above comment. The aforementioned crater run seemed problematic, not b/c of this PR, but probably user error. |
pnkfelix
added
the
S-waiting-on-crater
label
Nov 5, 2015
petrochenkov
force-pushed the
petrochenkov:empstr
branch
from
b7f8311
to
fec3902
Nov 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
petrochenkov
referenced this pull request
Nov 10, 2015
Closed
Tracking issue for `braced_empty_structs` (RFC 218) #29720
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:empstr
branch
from
fec3902
to
9942e4e
Nov 12, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. @alexcrichton, could you run crater on this? |
This comment has been minimized.
This comment has been minimized.
|
Starting a crater run. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Crater reports eight root regressions with as many as up to 34. I glanced at the root ones and they at least all look legitimate. Perhaps that error could be a warning for a few cycles? Seems like a good bugfix to have, but may be good to give fair warning. |
alexcrichton
added
the
relnotes
label
Nov 16, 2015
petrochenkov
added some commits
Oct 26, 2015
petrochenkov
force-pushed the
petrochenkov:empstr
branch
from
afe9350
to
af96402
Nov 19, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
This comment has been minimized.
This comment has been minimized.
|
ping @pnkfelix |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 28, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
Needs retry |
This comment has been minimized.
This comment has been minimized.
|
@bors retry |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 28, 2015
This comment has been minimized.
This comment has been minimized.
bors
merged commit af96402
into
rust-lang:master
Nov 28, 2015
This comment has been minimized.
This comment has been minimized.
|
It looks like it's a breaking change anyway, conv
|
m4rw3r
added a commit
to m4rw3r/rust-conv
that referenced
this pull request
Nov 30, 2015
m4rw3r
referenced this pull request
Nov 30, 2015
Merged
Nightly 2015-11-30: Fix for non-exhaustive patterns when using empty structs #4
This comment has been minimized.
This comment has been minimized.
|
Hm, the warning should not affect exhaustiveness check, I'll investigate what happens. |
This comment has been minimized.
This comment has been minimized.
|
I apologise if I'm pointing to the wrong PR, but it seems related. |
petrochenkov commentedOct 26, 2015
Fixes #28692
Fixes #28992
Fixes some other similar issues (see the tests)
[breaking-change], needs crater run (cc @brson or @alexcrichton )
The pattern with parens
UnitVariant(..)for unit variants seems to be popular in rustc (see the second commit), but mostly used by one person (@nikomatsakis), according to git blame. If it causes breakage on crates.io I'll add an exceptional case for it.