]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/lower_intrinsics.size_of.LowerIntrinsics.diff
Auto merge of #98957 - RalfJung:zst-are-different, r=lcnr,oli-obk
[rust.git] / src / test / mir-opt / lower_intrinsics.size_of.LowerIntrinsics.diff
1 - // MIR for `size_of` before LowerIntrinsics
2 + // MIR for `size_of` after LowerIntrinsics
3   
4   fn size_of() -> usize {
5       let mut _0: usize;                   // return place in scope 0 at $DIR/lower_intrinsics.rs:13:24: 13:29
6   
7       bb0: {
8 -         _0 = std::intrinsics::size_of::<T>() -> bb1; // scope 0 at $DIR/lower_intrinsics.rs:14:5: 14:37
9 -                                          // mir::Constant
10 -                                          // + span: $DIR/lower_intrinsics.rs:14:5: 14:35
11 -                                          // + literal: Const { ty: extern "rust-intrinsic" fn() -> usize {std::intrinsics::size_of::<T>}, val: Value(<ZST>) }
12 +         _0 = SizeOf(T);                  // scope 0 at $DIR/lower_intrinsics.rs:14:5: 14:37
13 +         goto -> bb1;                     // scope 0 at $DIR/lower_intrinsics.rs:14:5: 14:37
14       }
15   
16       bb1: {
17           return;                          // scope 0 at $DIR/lower_intrinsics.rs:15:2: 15:2
18       }
19   
20       bb2 (cleanup): {
21           resume;                          // scope 0 at $DIR/lower_intrinsics.rs:13:1: 15:2
22       }
23   }
24