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>(
463463 let res = match res {
464464 Err ( res) => res,
465465 // `Ok` can never happen
466+ #[ cfg( bootstrap) ]
466467 Ok ( never) => match never { } ,
467468 } ;
468469
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ async fn hello_world() {
5959}
6060
6161// This example comes from https://github.com/rust-lang/rust/issues/115145
62+ #[ allow( unreachable_patterns) ]
6263async fn uninhabited_variant ( ) {
6364 async fn unreachable ( _: Never ) { }
6465
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ fn discriminant_overflow() {
4343 }
4444}
4545
46+ #[ allow( unreachable_patterns) ]
4647fn more_discriminant_overflow ( ) {
4748 pub enum Infallible { }
4849
You can’t perform that action at this time.
0 commit comments