mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update mir-opt expected output for matches! macro
This commit is contained in:
+4
-2
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
|
||||
let _2: std::option::Option<u32>;
|
||||
scope 2 (inlined Option::<u32>::is_some) {
|
||||
let mut _3: isize;
|
||||
scope 3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
let mut _5: isize;
|
||||
let mut _6: !;
|
||||
scope 4 {
|
||||
scope 5 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-2
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
|
||||
let _2: std::option::Option<u32>;
|
||||
scope 2 (inlined Option::<u32>::is_some) {
|
||||
let mut _3: isize;
|
||||
scope 3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
let mut _5: isize;
|
||||
let mut _6: !;
|
||||
scope 4 {
|
||||
scope 5 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-2
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
|
||||
let _2: std::option::Option<u32>;
|
||||
scope 2 (inlined Option::<u32>::is_some) {
|
||||
let mut _3: isize;
|
||||
scope 3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
let mut _5: isize;
|
||||
let mut _6: !;
|
||||
scope 4 {
|
||||
scope 5 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-2
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
|
||||
let _2: std::option::Option<u32>;
|
||||
scope 2 (inlined Option::<u32>::is_some) {
|
||||
let mut _3: isize;
|
||||
scope 3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
|
||||
let mut _5: isize;
|
||||
let mut _6: !;
|
||||
scope 4 {
|
||||
scope 5 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
let mut _2: bool;
|
||||
let mut _3: isize;
|
||||
+ let mut _4: isize;
|
||||
scope 1 {
|
||||
}
|
||||
|
||||
bb0: {
|
||||
StorageLive(_2);
|
||||
|
||||
@@ -25,9 +25,11 @@ fn step_forward(_1: u16, _2: usize) -> u16 {
|
||||
}
|
||||
scope 8 (inlined Option::<u16>::is_none) {
|
||||
scope 9 (inlined Option::<u16>::is_some) {
|
||||
scope 10 {
|
||||
}
|
||||
}
|
||||
}
|
||||
scope 10 (inlined core::num::<impl u16>::wrapping_add) {
|
||||
scope 11 (inlined core::num::<impl u16>::wrapping_add) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -25,9 +25,11 @@ fn step_forward(_1: u16, _2: usize) -> u16 {
|
||||
}
|
||||
scope 8 (inlined Option::<u16>::is_none) {
|
||||
scope 9 (inlined Option::<u16>::is_some) {
|
||||
scope 10 {
|
||||
}
|
||||
}
|
||||
}
|
||||
scope 10 (inlined core::num::<impl u16>::wrapping_add) {
|
||||
scope 11 (inlined core::num::<impl u16>::wrapping_add) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ fn issue_77355_opt(_1: Foo) -> u64 {
|
||||
debug num => _1;
|
||||
let mut _0: u64;
|
||||
let mut _2: isize;
|
||||
scope 1 {
|
||||
}
|
||||
|
||||
bb0: {
|
||||
_2 = discriminant(_1);
|
||||
|
||||
Reference in New Issue
Block a user