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 c204231 commit 17b0d90Copy full SHA for 17b0d90
tests/mir-opt/copy-prop/custom_move_arg.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
//@ test-mir-pass: CopyProp
4
@@ -12,6 +11,13 @@ struct NotCopy(bool);
12
11
// EMIT_MIR custom_move_arg.f.CopyProp.diff
13
#[custom_mir(dialect = "runtime")]
14
fn f(_1: NotCopy) {
+ // CHECK-LABEL: fn f(
15
+ // CHECK: bb0: {
16
+ // CHECK-NOT: _2 = copy _1;
17
+ // CHECK: _0 = opaque::<NotCopy>(copy _1)
18
+ // CHECK: bb1: {
19
+ // CHECK-NOT: _3 = move _2;
20
21
mir! {
22
{
23
let _2 = _1;
0 commit comments