We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0692090 commit 7ecf674Copy full SHA for 7ecf674
tests/mir-opt/dest-prop/simple.rs
@@ -1,9 +1,14 @@
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
+ // CHECK: [[a]] = move [[b]];
11
+ // CHECK: id::<usize>(move [[a]])
12
let mut buf = [0; 1024];
13
init(&mut buf);
14
buf
0 commit comments