summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff')
-rw-r--r--tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff74
1 files changed, 34 insertions, 40 deletions
diff --git a/tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff b/tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff
index 80b5810aa..54c33aac9 100644
--- a/tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff
+++ b/tests/mir-opt/inline/inline_into_box_place.main.Inline.panic-unwind.diff
@@ -33,37 +33,36 @@
+ debug ptr => _11;
+ scope 18 (inlined NonNull::<[u8]>::as_mut_ptr) {
+ debug self => _11;
-+ let mut _16: std::ptr::NonNull<u8>;
++ let mut _15: std::ptr::NonNull<u8>;
+ scope 19 (inlined NonNull::<[u8]>::as_non_null_ptr) {
+ debug self => _11;
-+ let mut _17: *mut u8;
-+ let mut _18: *mut [u8];
++ let mut _16: *mut u8;
++ let mut _17: *mut [u8];
+ scope 20 {
+ scope 21 (inlined NonNull::<[u8]>::as_ptr) {
+ debug self => _11;
-+ let mut _19: *const [u8];
++ let mut _18: *const [u8];
+ }
+ scope 22 (inlined ptr::mut_ptr::<impl *mut [u8]>::as_mut_ptr) {
-+ debug self => _18;
++ debug self => _17;
+ }
+ scope 23 (inlined NonNull::<u8>::new_unchecked) {
-+ debug ptr => _17;
-+ let mut _20: *const u8;
-+ let mut _21: *mut u8;
++ debug ptr => _16;
++ let mut _19: *const u8;
+ scope 24 {
+ scope 25 (inlined NonNull::<T>::new_unchecked::runtime::<u8>) {
-+ debug ptr => _21;
++ debug ptr => _16;
+ scope 26 (inlined ptr::mut_ptr::<impl *mut u8>::is_null) {
-+ debug self => _21;
-+ let mut _22: *mut u8;
++ debug self => _16;
++ let mut _20: *mut u8;
+ scope 27 {
+ scope 28 (inlined ptr::mut_ptr::<impl *mut T>::is_null::runtime_impl) {
-+ debug ptr => _22;
++ debug ptr => _20;
+ scope 29 (inlined ptr::mut_ptr::<impl *mut u8>::addr) {
-+ debug self => _22;
++ debug self => _20;
+ scope 30 {
+ scope 31 (inlined ptr::mut_ptr::<impl *mut u8>::cast::<()>) {
-+ debug self => _22;
++ debug self => _20;
+ }
+ }
+ }
@@ -76,8 +75,8 @@
+ }
+ }
+ scope 32 (inlined NonNull::<u8>::as_ptr) {
-+ debug self => _16;
-+ let mut _23: *const u8;
++ debug self => _15;
++ let mut _21: *const u8;
+ }
+ }
+ }
@@ -94,14 +93,13 @@
+ scope 10 {
+ scope 11 (inlined std::ptr::Alignment::new_unchecked) {
+ debug align => _5;
-+ let mut _15: usize;
+ scope 12 {
+ scope 14 (inlined std::ptr::Alignment::new_unchecked::runtime) {
-+ debug align => _15;
++ debug align => _5;
+ scope 15 (inlined core::num::<impl usize>::is_power_of_two) {
-+ debug self => _15;
++ debug self => _5;
+ scope 16 (inlined core::num::<impl usize>::count_ones) {
-+ debug self => _15;
++ debug self => _5;
+ }
+ }
+ }
@@ -131,14 +129,12 @@
+ StorageLive(_12);
+ StorageLive(_13);
+ StorageLive(_14);
-+ StorageLive(_15);
+ _14 = _5 as std::ptr::Alignment (Transmute);
-+ StorageDead(_15);
+ _8 = Layout { size: _4, align: move _14 };
+ StorageDead(_14);
+ StorageLive(_9);
+ _13 = const _;
-+ _9 = std::alloc::Global::alloc_impl(_13, _8, const false) -> [return: bb7, unwind: bb3];
++ _9 = std::alloc::Global::alloc_impl(move _13, _8, const false) -> [return: bb7, unwind: bb3];
}
bb1: {
@@ -165,7 +161,7 @@
- bb4 (cleanup): {
- resume;
+ bb4: {
-+ _12 = handle_alloc_error(_8) -> bb3;
++ _12 = handle_alloc_error(move _8) -> bb3;
+ }
+
+ bb5: {
@@ -174,29 +170,27 @@
+
+ bb6: {
+ _11 = ((_9 as Ok).0: std::ptr::NonNull<[u8]>);
++ StorageLive(_15);
+ StorageLive(_16);
+ StorageLive(_17);
+ StorageLive(_18);
-+ StorageLive(_19);
-+ _19 = (_11.0: *const [u8]);
-+ _18 = move _19 as *mut [u8] (PtrToPtr);
-+ StorageDead(_19);
-+ _17 = _18 as *mut u8 (PtrToPtr);
++ _18 = (_11.0: *const [u8]);
++ _17 = move _18 as *mut [u8] (PtrToPtr);
+ StorageDead(_18);
++ _16 = _17 as *mut u8 (PtrToPtr);
++ StorageDead(_17);
++ StorageLive(_19);
+ StorageLive(_20);
-+ StorageLive(_21);
-+ StorageLive(_22);
-+ _20 = _17 as *const u8 (PointerCoercion(MutToConstPointer));
-+ _16 = NonNull::<u8> { pointer: _20 };
-+ StorageDead(_22);
-+ StorageDead(_21);
++ _19 = _16 as *const u8 (PointerCoercion(MutToConstPointer));
++ _15 = NonNull::<u8> { pointer: _19 };
+ StorageDead(_20);
-+ StorageDead(_17);
-+ StorageLive(_23);
-+ _23 = (_16.0: *const u8);
-+ _6 = move _23 as *mut u8 (PtrToPtr);
-+ StorageDead(_23);
++ StorageDead(_19);
+ StorageDead(_16);
++ StorageLive(_21);
++ _21 = (_15.0: *const u8);
++ _6 = move _21 as *mut u8 (PtrToPtr);
++ StorageDead(_21);
++ StorageDead(_15);
+ StorageDead(_9);
+ StorageDead(_13);
+ StorageDead(_12);