We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118cfbe commit e0739d9Copy full SHA for e0739d9
tests/mir-opt/dest-prop/simple.rs
@@ -1,9 +1,10 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
//! Copy of `nrvo-simple.rs`, to ensure that full dest-prop handles it too.
4
//@ unit-test: DestinationPropagation
5
// EMIT_MIR simple.nrvo.DestinationPropagation.diff
6
fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] {
+ // CHECK-LABEL: fn nrvo
7
+ // CHECK-NOT: {{_.*}} = {{_.*}}
8
let mut buf = [0; 1024];
9
init(&mut buf);
10
buf
0 commit comments