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 upbeta regression matching unit-like structs with .. #30379
Comments
This comment has been minimized.
This comment has been minimized.
|
This is an expected result of #29383 |
This comment has been minimized.
This comment has been minimized.
|
@petrochenkov breaking change with no warning cycle? I expected a warning like there is with a unitary enum variant. |
This comment has been minimized.
This comment has been minimized.
|
The warning was introduced only for the case |
This comment has been minimized.
This comment has been minimized.
|
I guess my crate wasn't up during the crater run then :( But this is the point of beta, right, to catch stuff like this? |
This comment has been minimized.
This comment has been minimized.
|
I don't know, it's possible to turn all errors produced by #29383 into warnings temporarily, but IMHO it's simpler to fix the bug on your side. EDIT: Oh wait, @pnkfelix was the reviewer, but I remember nikomatsakis commented there about errors/warnings. |
This comment has been minimized.
This comment has been minimized.
|
triage: I-nominated |
rust-highfive
added
the
I-nominated
label
Dec 14, 2015
alexcrichton
added
the
T-compiler
label
Dec 14, 2015
This comment has been minimized.
This comment has been minimized.
|
In this case it's in a complex macro (my guard crate) so there really is no workaround until |
bluss
added
the
regression-from-stable-to-beta
label
Dec 14, 2015
This comment has been minimized.
This comment has been minimized.
https://github.com/durka/guard/blob/master/src/lib.rs#L71 |
This comment has been minimized.
This comment has been minimized.
|
Yes (though it's ugly), unless the struct/enum is local to the function/block. So it's a rather niche case I suppose. |
This comment has been minimized.
This comment has been minimized.
|
@petrochenkov actually no, that doesn't seem to help for structs imported from other modules: http://is.gd/TlO9Ro |
This comment has been minimized.
This comment has been minimized.
|
@durka |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix in beta, enums warn while structs error. |
This comment has been minimized.
This comment has been minimized.
Ah! Okay, I see. |
This comment has been minimized.
This comment has been minimized.
(I think the appropriate action here is to make them all warnings. But hopefully we'll settle this at the compiler team meeting in a few days.) |
This comment has been minimized.
This comment has been minimized.
|
@durka
|
This comment has been minimized.
This comment has been minimized.
|
Oh interesting, I didn't realize that was a hard error in some places. On Mon, Dec 14, 2015 at 6:52 PM, Vadim Petrochenkov <
|
This comment has been minimized.
This comment has been minimized.
|
I still think reverting the error doesn't worth the effort. |
This comment has been minimized.
This comment has been minimized.
|
On Mon, Dec 14, 2015 at 03:52:40PM -0800, Vadim Petrochenkov wrote:
Huh, yet an other quirk of resolve. I can't say I agree with that |
pnkfelix
self-assigned this
Dec 17, 2015
This comment has been minimized.
This comment has been minimized.
Compiler team discussed this and decided that we'd prefer to take this tack. I'll take care of this (after all, I overlooked it in my review of the original PR). |
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix Two weeks until this is released. Needs a fix soon. |
This comment has been minimized.
This comment has been minimized.
|
@brson thanks, lost this in shuffle of other work |
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
Jan 7, 2016
pnkfelix
referenced this issue
Jan 7, 2016
Merged
Downgrade unit struct match via S(..) warnings to errors #30753
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
removed
the
I-nominated
label
Jan 7, 2016
rust-highfive
added
the
P-high
label
Jan 7, 2016
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
Jan 8, 2016
bors
added a commit
that referenced
this issue
Jan 11, 2016
bors
added a commit
that referenced
this issue
Jan 11, 2016
bors
closed this
in
#30753
Jan 11, 2016
pnkfelix
reopened this
Jan 12, 2016
This comment has been minimized.
This comment has been minimized.
|
This is a beta issue; it was an accident for me to close it in PR #30753 itself, since that solely affected nightly. |
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
Jan 12, 2016
This comment has been minimized.
This comment has been minimized.
|
Merged on beta. |
durka commentedDec 14, 2015
This code
compiles on stable 1.5 (no RFC 218 warning) but fails on beta 1.6 with E0164.