Skip to content

Commit a5d8ab7

Browse files
committed
Rebase fallout
1 parent 43313d5 commit a5d8ab7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/mir-opt/const-promotion-extern-static.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ fn main() {}
4848
// START rustc.BAR.PromoteTemps.after.mir
4949
// bb0: {
5050
// ...
51-
// _2 = &(promoted[0]: [&'static i32; 1]);
51+
// _6 = const BAR::promoted[0];
52+
// _2 = &(*_6);
5253
// _1 = move _2 as &[&'static i32] (Pointer(Unsize));
5354
// _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
5455
// }
@@ -60,7 +61,8 @@ fn main() {}
6061
// START rustc.FOO.PromoteTemps.after.mir
6162
// bb0: {
6263
// ...
63-
// _2 = &(promoted[0]: [&'static i32; 1]);
64+
// _6 = const FOO::promoted[0];
65+
// _2 = &(*_6);
6466
// _1 = move _2 as &[&'static i32] (Pointer(Unsize));
6567
// _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
6668
// }

0 commit comments

Comments
 (0)