We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43313d5 commit a5d8ab7Copy full SHA for a5d8ab7
src/test/mir-opt/const-promotion-extern-static.rs
@@ -48,7 +48,8 @@ fn main() {}
48
// START rustc.BAR.PromoteTemps.after.mir
49
// bb0: {
50
// ...
51
-// _2 = &(promoted[0]: [&'static i32; 1]);
+// _6 = const BAR::promoted[0];
52
+// _2 = &(*_6);
53
// _1 = move _2 as &[&'static i32] (Pointer(Unsize));
54
// _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
55
// }
@@ -60,7 +61,8 @@ fn main() {}
60
61
// START rustc.FOO.PromoteTemps.after.mir
62
63
64
+// _6 = const FOO::promoted[0];
65
66
67
68
0 commit comments