Skip to content

Commit

Permalink
Update mir-opt to promoted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 23, 2018
1 parent be92f9d commit cbd4274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 2 additions & 6 deletions src/test/mir-opt/end_region_destruction_extents_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,15 @@ unsafe impl<'a, #[may_dangle] 'b> Drop for D1<'a, 'b> {
// let mut _6: &'10s S1;
// let mut _7: &'10s S1;
// let mut _8: S1;
// let mut _9: &'10s S1;
// let mut _10: &'12ds S1;
// bb0: {
// StorageLive(_2);
// StorageLive(_3);
// StorageLive(_4);
// _10 = promoted[1];
// _4 = &'12ds (*_10);
// _4 = &'12ds (promoted[1]: S1);
// _3 = &'12ds (*_4);
// StorageLive(_6);
// StorageLive(_7);
// _9 = promoted[0];
// _7 = &'10s (*_9);
// _7 = &'10s (promoted[0]: S1);
// _6 = &'10s (*_7);
// _2 = D1<'12ds, '10s>::{{constructor}}(move _3, move _6);
// EndRegion('10s);
Expand Down
6 changes: 2 additions & 4 deletions src/test/mir-opt/match_false_edges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ fn main() {
// ...
// _2 = std::option::Option<i32>::Some(const 42i32,);
// _3 = discriminant(_2);
// _14 = promoted[1];
// _4 = &(*_14);
// _4 = &(promoted[1]: std::option::Option<i32>);
// _9 = discriminant(_2);
// switchInt(move _9) -> [0isize: bb5, 1isize: bb3, otherwise: bb7];
// }
Expand Down Expand Up @@ -86,8 +85,7 @@ fn main() {
// }
// bb8: { // binding1 and guard
// StorageLive(_7);
// _13 = promoted[0];
// _7 = &(((*_13) as Some).0: i32);
// _7 = &(((promoted[0]: std::option::Option<i32>) as Some).0: i32);
// StorageLive(_10);
// _10 = const guard() -> [return: bb9, unwind: bb1];
// }
Expand Down

0 comments on commit cbd4274

Please sign in to comment.