]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.diff
Auto merge of #79945 - jackh726:existential_trait_ref, r=nikomatsakis
[rust.git] / src / test / mir-opt / lower_intrinsics.unreachable.LowerIntrinsics.diff
1 - // MIR for `unreachable` before LowerIntrinsics
2 + // MIR for `unreachable` after LowerIntrinsics
3   
4   fn unreachable() -> ! {
5       let mut _0: !;                       // return place in scope 0 at $DIR/lower_intrinsics.rs:23:25: 23:26
6       let mut _1: !;                       // in scope 0 at $DIR/lower_intrinsics.rs:23:27: 25:2
7       let _2: ();                          // in scope 0 at $DIR/lower_intrinsics.rs:24:14: 24:45
8       let mut _3: !;                       // in scope 0 at $DIR/lower_intrinsics.rs:24:14: 24:45
9       scope 1 {
10       }
11   
12       bb0: {
13           StorageLive(_2);                 // scope 0 at $DIR/lower_intrinsics.rs:24:5: 24:47
14           StorageLive(_3);                 // scope 1 at $DIR/lower_intrinsics.rs:24:14: 24:45
15 -         std::intrinsics::unreachable();  // scope 1 at $DIR/lower_intrinsics.rs:24:14: 24:45
16 -                                          // mir::Constant
17 -                                          // + span: $DIR/lower_intrinsics.rs:24:14: 24:43
18 -                                          // + literal: Const { ty: unsafe extern "rust-intrinsic" fn() -> ! {std::intrinsics::unreachable}, val: Value(Scalar(<ZST>)) }
19 +         unreachable;                     // scope 1 at $DIR/lower_intrinsics.rs:24:14: 24:45
20       }
21   
22       bb1 (cleanup): {
23           resume;                          // scope 0 at $DIR/lower_intrinsics.rs:23:1: 25:2
24       }
25   }
26