We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd2d390 commit 13e971eCopy full SHA for 13e971e
tests/mir-opt/copy-prop/move_arg.rs
@@ -1,10 +1,13 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
// Test that we do not move multiple times from the same local.
4
//@ test-mir-pass: CopyProp
5
6
// EMIT_MIR move_arg.f.CopyProp.diff
7
pub fn f<T: Copy>(a: T) {
+ // CHECK-LABEL: fn f(
8
+ // CHECK: debug a => [[a:_.*]];
9
+ // CHECK: debug b => [[a]];
10
+ // CHECK: g::<T>(copy [[a]], copy [[a]])
11
let b = a;
12
g(a, b);
13
}
0 commit comments