Skip to content

Commit 4d8ed58

Browse files
committed
Bless mir-opt.
1 parent 5d8161c commit 4d8ed58

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/mir-opt/const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-elaborate-drops.after.mir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ promoted[0] in FOO: &[&i32; 1] = {
77
let mut _3: *const i32; // in scope 0 at $DIR/const_promotion_extern_static.rs:+0:42: +0:43
88

99
bb0: {
10-
_3 = const {alloc3: *const i32}; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:42: +0:43
10+
_3 = const {alloc2: *const i32}; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:42: +0:43
1111
// mir::Constant
1212
// + span: $DIR/const_promotion_extern_static.rs:13:42: 13:43
13-
// + literal: Const { ty: *const i32, val: Value(Scalar(alloc3)) }
13+
// + literal: Const { ty: *const i32, val: Value(Scalar(alloc2)) }
1414
_2 = &(*_3); // scope 0 at $DIR/const_promotion_extern_static.rs:+0:41: +0:43
1515
_1 = [move _2]; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:46
1616
_0 = &_1; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:55
1717
return; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:55
1818
}
1919
}
2020

21-
alloc3 (extern static: X)
21+
alloc2 (extern static: X)

tests/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
- StorageLive(_3); // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:46
1919
- StorageLive(_4); // scope 0 at $DIR/const_promotion_extern_static.rs:+0:32: +0:45
2020
- StorageLive(_5); // scope 1 at $DIR/const_promotion_extern_static.rs:+0:42: +0:43
21-
- _5 = const {alloc3: *const i32}; // scope 1 at $DIR/const_promotion_extern_static.rs:+0:42: +0:43
21+
- _5 = const {alloc2: *const i32}; // scope 1 at $DIR/const_promotion_extern_static.rs:+0:42: +0:43
2222
+ _6 = const _; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:55
2323
// mir::Constant
2424
- // + span: $DIR/const_promotion_extern_static.rs:13:42: 13:43
25-
- // + literal: Const { ty: *const i32, val: Value(Scalar(alloc3)) }
25+
- // + literal: Const { ty: *const i32, val: Value(Scalar(alloc2)) }
2626
- _4 = &(*_5); // scope 1 at $DIR/const_promotion_extern_static.rs:+0:41: +0:43
2727
- _3 = [move _4]; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:46
2828
- _2 = &_3; // scope 0 at $DIR/const_promotion_extern_static.rs:+0:31: +0:55
@@ -50,5 +50,5 @@
5050
}
5151
}
5252
-
53-
- alloc3 (extern static: X)
53+
- alloc2 (extern static: X)
5454

0 commit comments

Comments
 (0)