We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0692090 commit 1439ea1Copy full SHA for 1439ea1
tests/mir-opt/dest-prop/simple.rs
@@ -1,9 +1,12 @@
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: debug init => [[init:_.*]];
8
+ // CHECK-NOT: {{_.*}} = [[init]];
9
+ // CHECK: move [[init]](move {{._*}})
10
let mut buf = [0; 1024];
11
init(&mut buf);
12
buf
0 commit comments