about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2025-04-25 05:01:33 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2025-04-25 05:01:33 +0000
commit65e76849ac460cebfce6db7d6f3db6b48eeff31d (patch)
tree033589cdc25e12f84bf732fc1a3439208d9fee83 /compiler/rustc_codegen_gcc
parent37049558e43e72fa3890aa3f7c23e5f00414444c (diff)
parent7018392337a938e25c9ed9190c4f0966737fffdb (diff)
downloadrust-65e76849ac460cebfce6db7d6f3db6b48eeff31d.tar.gz
rust-65e76849ac460cebfce6db7d6f3db6b48eeff31d.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/example/example.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_gcc/example/example.rs b/compiler/rustc_codegen_gcc/example/example.rs
index 03470b74d0a..888fa89201e 100644
--- a/compiler/rustc_codegen_gcc/example/example.rs
+++ b/compiler/rustc_codegen_gcc/example/example.rs
@@ -1,6 +1,6 @@
 #![feature(no_core, unboxed_closures)]
 #![no_core]
-#![allow(dead_code)]
+#![allow(dead_code, unnecessary_transmutes)]
 
 extern crate mini_core;
 
@@ -11,11 +11,7 @@ fn abc(a: u8) -> u8 {
 }
 
 fn bcd(b: bool, a: u8) -> u8 {
-    if b {
-        a * 2
-    } else {
-        a * 3
-    }
+    if b { a * 2 } else { a * 3 }
 }
 
 fn call() {