diff options
| author | Ralf Jung <post@ralfj.de> | 2025-04-25 10:43:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-25 10:43:50 +0000 |
| commit | ea9037e1654d2fb7e29dca87679d3c18a713f82d (patch) | |
| tree | b304db669fcd8cadd9f7d0e3119e54545326318a /compiler/rustc_codegen_gcc | |
| parent | 0ee8f32dcd42a5091579f11db87f86672971a1d1 (diff) | |
| parent | 673c879abb7f3b05e25f0da5654e2a484abc17c0 (diff) | |
| download | rust-ea9037e1654d2fb7e29dca87679d3c18a713f82d.tar.gz rust-ea9037e1654d2fb7e29dca87679d3c18a713f82d.zip | |
Merge pull request #4292 from rust-lang/rustup-2025-04-25
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/example/example.rs | 8 |
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() { |
