1
Fork 0

patch mir-opt reference files

This commit is contained in:
Niko Matsakis 2017-10-31 14:02:31 -04:00
parent 9b3af6ce3c
commit aae3e74e70
3 changed files with 13 additions and 7 deletions

View file

@ -31,15 +31,21 @@ fn main() {
// | Live variables at bb0[0]: []
// StorageLive(_1);
// | Live variables at bb0[1]: []
// _1 = const <std::boxed::Box<T>>::new(const 22usize) -> bb1;
// StorageLive(_2);
// | Live variables at bb0[2]: []
// _2 = const 22usize;
// | Live variables at bb0[3]: [_2]
// _1 = const <std::boxed::Box<T>>::new(_2) -> bb1;
// }
// END rustc.node12.nll.0.mir
// START rustc.node12.nll.0.mir
// | Live variables on entry to bb1: [_1 (drop)]
// bb1: {
// | Live variables at bb1[0]: [_1 (drop)]
// StorageLive(_2);
// | Live variables at bb1[1]: [_1 (drop)]
// _2 = const can_panic() -> [return: bb2, unwind: bb4];
// | Live variables at bb1[0]: [_1 (drop)]
// StorageDead(_2);
// | Live variables at bb1[1]: [_1 (drop)]
// StorageLive(_3);
// | Live variables at bb1[2]: [_1 (drop)]
// _3 = const can_panic() -> [return: bb2, unwind: bb4];
// }
// END rustc.node12.nll.0.mir

View file

@ -46,5 +46,5 @@ impl<T> Drop for Wrap<T> {
// END RUST SOURCE
// START rustc.node12.nll.0.mir
// | '_#4r: {bb1[3], bb1[4], bb1[5], bb2[0], bb2[1], bb2[2], bb3[0], bb4[0], bb4[1], bb4[2], bb6[0], bb7[0], bb7[1], bb8[0]}
// | '_#4r: {bb1[3], bb1[4], bb1[5], bb2[0], bb2[1], bb2[2], bb3[0], bb3[1], bb3[2], bb4[0], bb4[1], bb4[2], bb6[0], bb7[0], bb7[1], bb7[2], bb8[0]}
// END rustc.node12.nll.0.mir

View file

@ -45,5 +45,5 @@ fn main() {
// ...
// _2 = &'_#0r _1[_3];
// ...
// _2 = &'_#2r (*_10);
// _2 = &'_#2r (*_11);
// END rustc.node12.nll.0.mir