Skip to content

Commit a1f7bad

Browse files
committed
Fix test
1 parent ec2ff8f commit a1f7bad

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

src/test/mir-opt/inline-closure.rs

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,24 @@ fn main() {
1818

1919
fn foo<T: Copy>(_t: T, q: i32) -> i32 {
2020
let x = |_t, _q| _t;
21-
x(q*2, q*3)
21+
x(q, q)
2222
}
2323

2424
// END RUST SOURCE
2525
// START rustc.foo.Inline.after.mir
2626
// ...
2727
// bb0: {
28-
// StorageLive(_3);
28+
// ...
2929
// _3 = [closure@NodeId(28)];
30-
// StorageLive(_4);
30+
// ...
3131
// _4 = &_3;
32-
// StorageLive(_5);
33-
// StorageLive(_6);
34-
// StorageLive(_7);
32+
// ...
33+
// _6 = _2;
34+
// ...
3535
// _7 = _2;
36-
// _6 = Mul(_7, const 2i32);
37-
// StorageDead(_7);
38-
// StorageLive(_8);
39-
// StorageLive(_9);
40-
// _9 = _2;
41-
// _8 = Mul(_9, const 3i32);
42-
// StorageDead(_9);
43-
// _5 = (_6, _8);
36+
// _5 = (_6, _7);
4437
// _0 = (_5.0: i32);
45-
// StorageDead(_5);
46-
// StorageDead(_8);
47-
// StorageDead(_6);
48-
// StorageDead(_4);
49-
// StorageDead(_3);
38+
// ...
5039
// return;
5140
// }
5241
// ...

0 commit comments

Comments
 (0)