2022-12-11 20:07:33 -06:00
|
|
|
- // MIR for `generic` before InstCombine
|
|
|
|
+ // MIR for `generic` after InstCombine
|
|
|
|
|
|
|
|
fn generic() -> () {
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/intrinsic_asserts.rs:+0:21: +0:21
|
|
|
|
let _1: (); // in scope 0 at $DIR/intrinsic_asserts.rs:+1:5: +1:46
|
|
|
|
let _2: (); // in scope 0 at $DIR/intrinsic_asserts.rs:+2:5: +2:47
|
|
|
|
let _3: (); // in scope 0 at $DIR/intrinsic_asserts.rs:+3:5: +3:60
|
|
|
|
|
|
|
|
bb0: {
|
2023-01-25 10:55:30 -06:00
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+1:5: +1:46
|
2023-04-05 03:17:40 -05:00
|
|
|
_1 = assert_inhabited::<T>() -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/intrinsic_asserts.rs:+1:5: +1:46
|
2022-12-11 20:07:33 -06:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/intrinsic_asserts.rs:25:5: 25:44
|
|
|
|
// + literal: Const { ty: extern "rust-intrinsic" fn() {assert_inhabited::<T>}, val: Value(<ZST>) }
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-01-25 10:55:30 -06:00
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+1:46: +1:47
|
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+2:5: +2:47
|
2023-04-05 03:17:40 -05:00
|
|
|
_2 = assert_zero_valid::<T>() -> [return: bb2, unwind unreachable]; // scope 0 at $DIR/intrinsic_asserts.rs:+2:5: +2:47
|
2022-12-11 20:07:33 -06:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/intrinsic_asserts.rs:26:5: 26:45
|
|
|
|
// + literal: Const { ty: extern "rust-intrinsic" fn() {assert_zero_valid::<T>}, val: Value(<ZST>) }
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-01-25 10:55:30 -06:00
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+2:47: +2:48
|
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+3:5: +3:60
|
2023-04-05 03:17:40 -05:00
|
|
|
_3 = assert_mem_uninitialized_valid::<T>() -> [return: bb3, unwind unreachable]; // scope 0 at $DIR/intrinsic_asserts.rs:+3:5: +3:60
|
2022-12-11 20:07:33 -06:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/intrinsic_asserts.rs:27:5: 27:58
|
|
|
|
// + literal: Const { ty: extern "rust-intrinsic" fn() {assert_mem_uninitialized_valid::<T>}, val: Value(<ZST>) }
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-01-25 10:55:30 -06:00
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+3:60: +3:61
|
2022-12-11 20:07:33 -06:00
|
|
|
nop; // scope 0 at $DIR/intrinsic_asserts.rs:+0:21: +4:2
|
|
|
|
return; // scope 0 at $DIR/intrinsic_asserts.rs:+4:2: +4:2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|