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 upRegression "pattern `_` not covered" in objc-encode-0.0.2, Rust 1.16 #40250
Comments
brson
added
the
regression-from-stable-to-beta
label
Mar 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Actually, on beta.3 the error is
|
This comment has been minimized.
This comment has been minimized.
|
Also commented on #38972 about this, wasn't sure if it was covered by that issue or not though: #38972 (comment) As far as I know, this should also impact the Void crate, which is used by more stuff |
This comment has been minimized.
This comment has been minimized.
|
Ah actually, nevermind, the difference is that the void crate matches a value, where I was matching a reference. The repro case I gave in #38972 is: enum Void { }
fn use_void(v: &Void) -> u32 {
match v { }
}
fn main() { } |
This comment has been minimized.
This comment has been minimized.
|
The regression on matching |
arielb1
added
the
T-compiler
label
Mar 4, 2017
This comment has been minimized.
This comment has been minimized.
|
So the repro case I gave would only ever have compiled on 1.15? It was feature-gated in 1.14 and is disallowed again in 1.16? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Ah welp, guess I was just writing the wrong code at the right time. Nothing is using objc-encode yet so I can just change it. |
brson commentedMar 4, 2017
The type is defined as
cc @SSheldon