Skip to content

Commit 4c3c0fc

Browse files
committed
Fix codegen examples
1 parent be31f20 commit 4c3c0fc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs

+1
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ pub enum E2<X> {
578578
V4,
579579
}
580580

581+
#[allow(unreachable_patterns)]
581582
fn check_niche_behavior() {
582583
if let E1::V2 { .. } = (E1::V1 { f: true }) {
583584
intrinsics::abort();

Diff for: compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs

+1
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ pub enum E2<X> {
432432
V4,
433433
}
434434

435+
#[allow(unreachable_patterns)]
435436
fn check_niche_behavior () {
436437
if let E1::V2 { .. } = (E1::V1 { f: true }) {
437438
intrinsics::abort();

0 commit comments

Comments
 (0)