File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,7 @@ pub fn eval_entry<'tcx>(
463
463
let res = match res {
464
464
Err ( res) => res,
465
465
// `Ok` can never happen
466
+ #[ cfg( bootstrap) ]
466
467
Ok ( never) => match never { } ,
467
468
} ;
468
469
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ async fn hello_world() {
59
59
}
60
60
61
61
// This example comes from https://github.com/rust-lang/rust/issues/115145
62
+ #[ allow( unreachable_patterns) ]
62
63
async fn uninhabited_variant ( ) {
63
64
async fn unreachable ( _: Never ) { }
64
65
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ fn discriminant_overflow() {
43
43
}
44
44
}
45
45
46
+ #[ allow( unreachable_patterns) ]
46
47
fn more_discriminant_overflow ( ) {
47
48
pub enum Infallible { }
48
49
You can’t perform that action at this time.
0 commit comments