We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22f2c27 commit 1d106a5Copy full SHA for 1d106a5
src/eval.rs
@@ -463,6 +463,7 @@ pub fn eval_entry<'tcx>(
463
let res = match res {
464
Err(res) => res,
465
// `Ok` can never happen
466
+ #[cfg(bootstrap)]
467
Ok(never) => match never {},
468
};
469
tests/pass/async-fn.rs
@@ -59,6 +59,7 @@ async fn hello_world() {
59
}
60
61
// This example comes from https://github.com/rust-lang/rust/issues/115145
62
+#[allow(unreachable_patterns)]
63
async fn uninhabited_variant() {
64
async fn unreachable(_: Never) {}
65
tests/pass/enums.rs
@@ -43,6 +43,7 @@ fn discriminant_overflow() {
43
44
45
46
47
fn more_discriminant_overflow() {
48
pub enum Infallible {}
49
0 commit comments