Skip to content
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

unreachable patterns on 1.82 beta #261

Closed
jayvdb opened this issue Sep 11, 2024 · 2 comments
Closed

unreachable patterns on 1.82 beta #261

jayvdb opened this issue Sep 11, 2024 · 2 comments

Comments

@jayvdb
Copy link

jayvdb commented Sep 11, 2024

> cargo +beta clippy
warning: unreachable pattern
   --> src/lib.rs:593:17
    |
593 |                 Err(void) => match void {},
    |                 ^^^^^^^^^ matches no values because `unsync::OnceCell<T>::get_or_init::Void` is uninhabited
    |
    = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
    = note: `#[warn(unreachable_patterns)]` on by default

(four more times)

Might be a compiler bug rust-lang/rust#129352

@brodycj
Copy link
Contributor

brodycj commented Sep 13, 2024

possible workaround is to do export RUSTFLAGS", "-A unreachable_patterns"

@matklad
Copy link
Owner

matklad commented Oct 31, 2024

That was a bug in rustc, it shouldn't be adding new unactionable warnings in the middle of an edition.

@matklad matklad closed this as completed Oct 31, 2024
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

No branches or pull requests

3 participants