about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-03-20 22:51:29 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-08-10 12:08:46 +0200
commite77612d3e4ff34d5096fbf7f8a1b9d3a4351770c (patch)
tree3470b14311b32da34c7e603629af5d61579e39ba /compiler/rustc_codegen_gcc/example
parent8615a6b006c41e02bdc6a46f1061e1e6daaefb22 (diff)
downloadrust-e77612d3e4ff34d5096fbf7f8a1b9d3a4351770c.tar.gz
rust-e77612d3e4ff34d5096fbf7f8a1b9d3a4351770c.zip
Fixes in various places
Diffstat (limited to 'compiler/rustc_codegen_gcc/example')
-rw-r--r--compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs b/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
index 5a7ddc4cd7f..9f096e90220 100644
--- a/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
+++ b/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
@@ -430,6 +430,7 @@ pub enum E2<X> {
     V4,
 }
 
+#[allow(unreachable_patterns)]
 fn check_niche_behavior () {
     if let E1::V2 { .. } = (E1::V1 { f: true }) {
         intrinsics::abort();