-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
beta regression matching unit-like structs with .. #30379
Comments
This is an expected result of #29383 |
@petrochenkov breaking change with no warning cycle? I expected a warning like there is with a unitary enum variant. |
The warning was introduced only for the case |
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? |
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. |
triage: I-nominated |
In this case it's in a complex macro (my guard crate) so there really is no workaround until |
https://github.com/durka/guard/blob/master/src/lib.rs#L71 |
Yes (though it's ugly), unless the struct/enum is local to the function/block. So it's a rather niche case I suppose. |
@petrochenkov actually no, that doesn't seem to help for structs imported from other modules: http://is.gd/TlO9Ro |
@durka |
@pnkfelix in beta, enums warn while structs error. |
Ah! Okay, I see. |
(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.) |
@durka
|
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 <
|
I still think reverting the error doesn't worth the effort. |
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 |
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). |
@pnkfelix Two weeks until this is released. Needs a fix soon. |
@brson thanks, lost this in shuffle of other work |
triage: P-high |
This is a beta issue; it was an accident for me to close it in PR #30753 itself, since that solely affected nightly. |
Merged on beta. |
This code
compiles on stable 1.5 (no RFC 218 warning) but fails on beta 1.6 with E0164.
The text was updated successfully, but these errors were encountered: