@@ -4,31 +4,29 @@ fn num_to_digit(_1: char) -> u32 {
44 debug num => _1; // in scope 0 at $DIR/issue_59352.rs:+0:21 : +0:24
55 let mut _0 : u32; // return place in scope 0 at $DIR/issue_59352.rs:+0:35: +0:38
66 let mut _2 : std::option::Option<u32>; // in scope 0 at $DIR/issue_59352.rs:+2:26: +2:41
7- let mut _3 : u32; // in scope 0 at $DIR/issue_59352.rs:+2:12: +2:23
87 scope 1 (inlined char::methods::<impl char>::is_digit) { // at $DIR/issue_59352.rs:15:12 : 15:23
98 debug self => _1; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
10- debug radix => _3; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
11- let mut _4 : &std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
12- let _5 : std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
9+ debug radix => const 8_u32; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
10+ let mut _3 : &std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
11+ let _4 : std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
1312 scope 2 (inlined Option::<u32>::is_some) { // at $SRC_DIR/core/src/char/methods.rs:LL:COL
14- debug self => _4 ; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
15- let mut _6 : isize; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
13+ debug self => _3 ; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
14+ let mut _5 : isize; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
1615 }
1716 }
1817 scope 3 (inlined # [track_caller] Option::<u32>::unwrap) { // at $DIR/issue_59352.rs:15:42: 15:50
1918 debug self => _2; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
20- let mut _7 : isize; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
21- let mut _8 : !; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
19+ let mut _6 : isize; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
20+ let mut _7 : !; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
2221 scope 4 {
2322 debug val => _0; // in scope 4 at $SRC_DIR/core/src/option.rs:LL:COL
2423 }
2524 }
2625
2726 bb0 : {
28- StorageLive(_3); // scope 0 at $DIR/issue_59352 .rs:+2:12 : +2:23
27+ StorageLive(_3); // scope 1 at $SRC_DIR/core/src/char/methods .rs:LL:COL
2928 StorageLive(_4); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
30- StorageLive(_5); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
31- _5 = char::methods::<impl char>::to_digit(_1, const 8_u32) -> bb5; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
29+ _4 = char::methods::<impl char>::to_digit(_1, const 8_u32) -> bb5; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
3230 // mir::Constant
3331 // + span : $SRC_DIR/core/src/char/methods.rs:LL:COL
3432 // + literal : Const { ty: fn(char, u32) -> Option<u32> {char::methods::<impl char>::to_digit}, val: Value(<ZST>) }
@@ -43,8 +41,8 @@ fn num_to_digit(_1: char) -> u32 {
4341 }
4442
4543 bb2 : {
46- _7 = discriminant(_2); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
47- switchInt(move _7 ) -> [0 : bb6, 1: bb8, otherwise: bb7]; // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
44+ _6 = discriminant(_2); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
45+ switchInt(move _6 ) -> [0 : bb6, 1: bb8, otherwise: bb7]; // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
4846 }
4947
5048 bb3 : {
@@ -57,16 +55,15 @@ fn num_to_digit(_1: char) -> u32 {
5755 }
5856
5957 bb5 : {
60- _4 = &_5; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
61- _6 = discriminant((*_4)); // scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
58+ _3 = &_4; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
59+ _5 = discriminant((*_3)); // scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
60+ StorageDead(_3); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
6261 StorageDead(_4); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
63- StorageDead(_5); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
64- StorageDead(_3); // scope 0 at $DIR/issue_59352.rs:+2:12 : +2:23
65- switchInt(move _6) -> [1 : bb1, otherwise: bb3]; // scope 0 at $DIR/issue_59352.rs:+2:8: +2:23
62+ switchInt(move _5) -> [1 : bb1, otherwise: bb3]; // scope 0 at $DIR/issue_59352.rs:+2:8: +2:23
6663 }
6764
6865 bb6 : {
69- _8 = core::panicking::panic(const "called `Option::unwrap()` on a `None` value"); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
66+ _7 = core::panicking::panic(const "called `Option::unwrap()` on a `None` value"); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
7067 // mir::Constant
7168 // + span : $SRC_DIR/core/src/option.rs:LL:COL
7269 // + literal : Const { ty: fn(&'static str) -> ! {core::panicking::panic}, val: Value(<ZST>) }
0 commit comments