d5cd3205fd
Rollup of 11 pull requests Successful merges: - #87832 (Fix debugger stepping behavior with `match` expressions) - #88123 (Make spans for tuple patterns in E0023 more precise) - #88215 (Reland #83738: "rustdoc: Don't load all extern crates unconditionally") - #88216 (Don't stabilize creation of TryReserveError instances) - #88270 (Handle type ascription type ops in NLL HRTB diagnostics) - #88289 (Fixes for LLVM change 0f45c16f2caa7c035e5c3edd40af9e0d51ad6ba7) - #88320 (type_implements_trait consider obligation failure on overflow) - #88332 (Add argument types tait tests) - #88340 (Add `c_size_t` and `c_ssize_t` to `std::os::raw`.) - #88346 (Revert "Add type of a let tait test impl trait straight in let") - #88348 (Add field types tait tests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
162 lines
12 KiB
Diff
162 lines
12 KiB
Diff
- // MIR for `main` before SimplifyArmIdentity
|
|
+ // MIR for `main` after SimplifyArmIdentity
|
|
|
|
fn main() -> () {
|
|
let mut _0: (); // return place in scope 0 at $DIR/issue-73223.rs:1:11: 1:11
|
|
let _1: i32; // in scope 0 at $DIR/issue-73223.rs:2:9: 2:14
|
|
let mut _2: std::option::Option<i32>; // in scope 0 at $DIR/issue-73223.rs:2:23: 2:30
|
|
let mut _3: isize; // in scope 0 at $DIR/issue-73223.rs:3:9: 3:16
|
|
let _4: i32; // in scope 0 at $DIR/issue-73223.rs:3:14: 3:15
|
|
let mut _5: !; // in scope 0 at $DIR/issue-73223.rs:4:17: 4:23
|
|
let mut _7: i32; // in scope 0 at $DIR/issue-73223.rs:7:22: 7:27
|
|
let _8: (); // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _9: (&i32, &i32); // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _10: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _11: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let _12: i32; // in scope 0 at $DIR/issue-73223.rs:8:23: 8:24
|
|
let mut _15: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _16: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _17: i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _18: i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _19: !; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let _21: !; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _22: core::panicking::AssertKind; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _23: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let _24: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _25: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let _26: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _27: std::option::Option<std::fmt::Arguments>; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
scope 1 {
|
|
debug split => _1; // in scope 1 at $DIR/issue-73223.rs:2:9: 2:14
|
|
let _6: std::option::Option<i32>; // in scope 1 at $DIR/issue-73223.rs:7:9: 7:14
|
|
scope 3 {
|
|
debug _prev => _6; // in scope 3 at $DIR/issue-73223.rs:7:9: 7:14
|
|
let _13: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let _14: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let mut _28: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
scope 4 {
|
|
debug left_val => _13; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
debug right_val => _14; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
let _20: core::panicking::AssertKind; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
scope 5 {
|
|
debug kind => _20; // in scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope 2 {
|
|
debug v => _4; // in scope 2 at $DIR/issue-73223.rs:3:14: 3:15
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1); // scope 0 at $DIR/issue-73223.rs:2:9: 2:14
|
|
StorageLive(_2); // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
|
|
((_2 as Some).0: i32) = const 1_i32; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
|
|
discriminant(_2) = 1; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
|
|
_3 = const 1_isize; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30
|
|
goto -> bb2; // scope 0 at $DIR/issue-73223.rs:2:17: 2:30
|
|
}
|
|
|
|
bb1: {
|
|
nop; // scope 0 at $DIR/issue-73223.rs:4:17: 4:23
|
|
StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7
|
|
StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
|
|
return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
|
|
}
|
|
|
|
bb2: {
|
|
StorageLive(_4); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15
|
|
_4 = ((_2 as Some).0: i32); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15
|
|
_1 = _4; // scope 2 at $DIR/issue-73223.rs:3:20: 3:21
|
|
StorageDead(_4); // scope 0 at $DIR/issue-73223.rs:3:20: 3:21
|
|
StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7
|
|
StorageLive(_6); // scope 1 at $DIR/issue-73223.rs:7:9: 7:14
|
|
StorageLive(_7); // scope 1 at $DIR/issue-73223.rs:7:22: 7:27
|
|
_7 = _1; // scope 1 at $DIR/issue-73223.rs:7:22: 7:27
|
|
((_6 as Some).0: i32) = move _7; // scope 1 at $DIR/issue-73223.rs:7:17: 7:28
|
|
discriminant(_6) = 1; // scope 1 at $DIR/issue-73223.rs:7:17: 7:28
|
|
StorageDead(_7); // scope 1 at $DIR/issue-73223.rs:7:27: 7:28
|
|
StorageLive(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_9); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_10); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_10 = &_1; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_11); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_28 = const main::promoted[0]; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// ty::Const
|
|
// + ty: &i32
|
|
// + val: Unevaluated(main, [], Some(promoted[0]))
|
|
// mir::Constant
|
|
// + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// + literal: Const { ty: &i32, val: Unevaluated(Unevaluated { def: WithOptConstParam { did: DefId(0:3 ~ issue_73223[2d0f]::main), const_param_did: None }, substs_: Some([]), promoted: Some(promoted[0]) }) }
|
|
_11 = _28; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
(_9.0: &i32) = move _10; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
(_9.1: &i32) = move _11; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_11); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_10); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_13); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_13 = (_9.0: &i32); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_14); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_14 = (_9.1: &i32); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_15); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_16); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_17); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_17 = (*_13); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_18); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_18 = const 1_i32; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_16 = Eq(move _17, const 1_i32); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_18); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_17); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_15 = Not(move _16); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_16); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
switchInt(move _15) -> [false: bb4, otherwise: bb3]; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
}
|
|
|
|
bb3: {
|
|
StorageLive(_20); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
discriminant(_20) = 0; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_21); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_22); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_22 = const core::panicking::AssertKind::Eq; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// ty::Const
|
|
// + ty: core::panicking::AssertKind
|
|
// + val: Value(Scalar(0x00))
|
|
// mir::Constant
|
|
// + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// + literal: Const { ty: core::panicking::AssertKind, val: Value(Scalar(0x00)) }
|
|
StorageLive(_23); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_24); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_24 = _13; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_23 = _24; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_25); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_26); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_26 = _14; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
_25 = _26; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageLive(_27); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
discriminant(_27) = 0; // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
core::panicking::assert_failed::<i32, i32>(const core::panicking::AssertKind::Eq, move _23, move _25, move _27); // scope 5 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// mir::Constant
|
|
// + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// + literal: Const { ty: for<'r, 's, 't0> fn(core::panicking::AssertKind, &'r i32, &'s i32, std::option::Option<std::fmt::Arguments<'t0>>) -> ! {core::panicking::assert_failed::<i32, i32>}, val: Value(Scalar(<ZST>)) }
|
|
// ty::Const
|
|
// + ty: core::panicking::AssertKind
|
|
// + val: Value(Scalar(0x00))
|
|
// mir::Constant
|
|
// + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
// + literal: Const { ty: core::panicking::AssertKind, val: Value(Scalar(0x00)) }
|
|
}
|
|
|
|
bb4: {
|
|
nop; // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_15); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_14); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_13); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_9); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
StorageDead(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
nop; // scope 0 at $DIR/issue-73223.rs:1:11: 9:2
|
|
StorageDead(_6); // scope 1 at $DIR/issue-73223.rs:9:1: 9:2
|
|
StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2
|
|
return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2
|
|
}
|
|
}
|
|
|