@@ -6,23 +6,22 @@ fn num_to_digit(_1: char) -> u32 {
6
6
let mut _2 : char; // in scope 0 at $DIR/issue-59352.rs:+2:8: +2:11
7
7
let mut _3 : std::option::Option<u32>; // in scope 0 at $DIR/issue-59352.rs:+2:26: +2:41
8
8
let mut _4 : char; // in scope 0 at $DIR/issue-59352.rs:+2:26: +2:29
9
- let mut _5 : u32; // in scope 0 at $DIR/issue-59352.rs:+2:8: +2:23
10
- let mut _12 : isize; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
9
+ let mut _11 : isize; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
11
10
scope 1 (inlined char::methods::<impl char>::is_digit) { // at $DIR/issue-59352.rs:14:8 : 14:23
12
11
debug self => _2; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
13
- debug radix => _5; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
14
- let mut _6 : &std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
15
- let _7 : std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
16
- let mut _8 : char; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
12
+ debug radix => const 8_u32; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
13
+ let mut _5 : &std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
14
+ let _6 : std::option::Option<u32>; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
15
+ let mut _7 : char; // in scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
17
16
scope 2 (inlined Option::<u32>::is_some) { // at $SRC_DIR/core/src/char/methods.rs:LL:COL
18
- debug self => _6 ; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
19
- let mut _9 : isize; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
17
+ debug self => _5 ; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
18
+ let mut _8 : isize; // in scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
20
19
}
21
20
}
22
21
scope 3 (inlined # [track_caller] Option::<u32>::unwrap) { // at $DIR/issue-59352.rs:14:26: 14:50
23
22
debug self => _3; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
24
- let mut _10 : isize; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
25
- let mut _11 : !; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
23
+ let mut _9 : isize; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
24
+ let mut _10 : !; // in scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
26
25
scope 4 {
27
26
debug val => _0; // in scope 4 at $SRC_DIR/core/src/option.rs:LL:COL
28
27
}
@@ -31,19 +30,18 @@ fn num_to_digit(_1: char) -> u32 {
31
30
bb0 : {
32
31
StorageLive(_2); // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:11
33
32
_2 = _1; // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:11
34
- StorageLive(_5); // scope 0 at $DIR/issue-59352 .rs:+2:8 : +2:23
33
+ StorageLive(_5); // scope 1 at $SRC_DIR/core/src/char/methods .rs:LL:COL
35
34
StorageLive(_6); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
36
35
StorageLive(_7); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
37
- StorageLive(_8); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
38
- _8 = _2; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
39
- _7 = char::methods::<impl char>::to_digit(move _8, const 8_u32) -> bb5; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
36
+ _7 = _2; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
37
+ _6 = char::methods::<impl char>::to_digit(move _7, const 8_u32) -> bb5; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
40
38
// mir::Constant
41
39
// + span : $SRC_DIR/core/src/char/methods.rs:LL:COL
42
40
// + literal : Const { ty: fn(char, u32) -> Option<u32> {char::methods::<impl char>::to_digit}, val: Value(<ZST>) }
43
41
}
44
42
45
43
bb1 : {
46
- StorageDead(_12 ); // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:23
44
+ StorageDead(_11 ); // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:23
47
45
StorageLive(_3); // scope 0 at $DIR/issue-59352.rs:+2:26 : +2:41
48
46
StorageLive(_4); // scope 0 at $DIR/issue-59352.rs:+2:26 : +2:29
49
47
_4 = _1; // scope 0 at $DIR/issue-59352.rs:+2:26 : +2:29
@@ -55,12 +53,12 @@ fn num_to_digit(_1: char) -> u32 {
55
53
56
54
bb2 : {
57
55
StorageDead(_4); // scope 0 at $DIR/issue-59352.rs:+2:40 : +2:41
58
- _10 = discriminant(_3); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
59
- switchInt(move _10 ) -> [0_isize : bb6, 1_isize: bb8, otherwise: bb7]; // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
56
+ _9 = discriminant(_3); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
57
+ switchInt(move _9 ) -> [0_isize : bb6, 1_isize: bb8, otherwise: bb7]; // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
60
58
}
61
59
62
60
bb3 : {
63
- StorageDead(_12 ); // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:23
61
+ StorageDead(_11 ); // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:23
64
62
_0 = const 0_u32; // scope 0 at $DIR/issue-59352.rs:+2:60 : +2:61
65
63
goto -> bb4; // scope 0 at $DIR/issue-59352.rs:+2:5 : +2:63
66
64
}
@@ -70,21 +68,20 @@ fn num_to_digit(_1: char) -> u32 {
70
68
}
71
69
72
70
bb5 : {
73
- _6 = &_7; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
74
- StorageDead(_8); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
75
- _9 = discriminant((*_6)); // scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
76
- StorageLive(_12); // scope 2 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
77
- _12 = move _9; // scope 2 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
78
- StorageDead(_6); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
71
+ _5 = &_6; // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
79
72
StorageDead(_7); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
80
- StorageDead(_5); // scope 0 at $DIR/issue-59352.rs:+2:8 : +2:23
73
+ _8 = discriminant((*_5)); // scope 2 at $SRC_DIR/core/src/option.rs:LL:COL
74
+ StorageLive(_11); // scope 2 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
75
+ _11 = move _8; // scope 2 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
76
+ StorageDead(_5); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
77
+ StorageDead(_6); // scope 1 at $SRC_DIR/core/src/char/methods.rs:LL:COL
81
78
StorageDead(_2); // scope 0 at $DIR/issue-59352.rs:+2:22 : +2:23
82
- switchInt(move _12 ) -> [1_isize : bb1, otherwise: bb3]; // scope 0 at $DIR/issue-59352.rs:+2:8: +2:23
79
+ switchInt(move _11 ) -> [1_isize : bb1, otherwise: bb3]; // scope 0 at $DIR/issue-59352.rs:+2:8: +2:23
83
80
}
84
81
85
82
bb6 : {
86
- StorageLive(_11 ); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
87
- _11 = core::panicking::panic(const "called `Option::unwrap()` on a `None` value"); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
83
+ StorageLive(_10 ); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
84
+ _10 = core::panicking::panic(const "called `Option::unwrap()` on a `None` value"); // scope 3 at $SRC_DIR/core/src/option.rs:LL:COL
88
85
// mir::Constant
89
86
// + span : $SRC_DIR/core/src/option.rs:LL:COL
90
87
// + literal : Const { ty: fn(&'static str) -> ! {core::panicking::panic}, val: Value(<ZST>) }
0 commit comments