]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen/try_identity.rs
1 // compile-flags: -C no-prepopulate-passes -Z mir-opt-level=2
3 // Ensure that `x?` has no overhead on `Result<T, E>` due to identity `match`es in lowering.
4 // This requires inlining to trigger the MIR optimizations in `SimplifyArmIdentity`.
8 type R
= Result
<u64, i32>;
11 fn try_identity(x
: R
) -> R
{
13 // CHECK-NOT: br {{.*}}