Skip to content

Commit 1d106a5

Browse files
committed
Fixes in various places
1 parent 22f2c27 commit 1d106a5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Diff for: src/eval.rs

+1
Original file line numberDiff line numberDiff 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

Diff for: tests/pass/async-fn.rs

+1
Original file line numberDiff line numberDiff 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)]
6263
async fn uninhabited_variant() {
6364
async fn unreachable(_: Never) {}
6465

Diff for: tests/pass/enums.rs

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ fn discriminant_overflow() {
4343
}
4444
}
4545

46+
#[allow(unreachable_patterns)]
4647
fn more_discriminant_overflow() {
4748
pub enum Infallible {}
4849

0 commit comments

Comments
 (0)