@@ -6,76 +6,72 @@ fn filter_mapped(_1: impl Iterator<Item = T>, _2: impl Fn(T) -> Option<U>) -> ()
6
6
let mut _0 : ();
7
7
let mut _3 : std::iter::FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>>;
8
8
let mut _4 : std::iter::FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>>;
9
- let mut _5 : std::iter::FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>>;
10
- let mut _6 : &mut std::iter::FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>>;
11
- let mut _9 : std::option::Option<U>;
12
- let mut _10 : isize;
13
- let _12 : ();
9
+ let mut _5 : &mut std::iter::FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>>;
10
+ let mut _8 : std::option::Option<U>;
11
+ let mut _9 : isize;
12
+ let _11 : ();
14
13
scope 1 {
15
- debug iter => _5 ;
16
- let _11 : U;
14
+ debug iter => _4 ;
15
+ let _10 : U;
17
16
scope 2 {
18
- debug x => _11 ;
17
+ debug x => _10 ;
19
18
}
20
19
scope 4 (inlined <FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>> as Iterator>::next) {
21
- debug self => _6 ;
22
- let mut _7 : &mut impl Iterator<Item = T>;
23
- let mut _8 : &mut impl Fn(T) -> Option<U>;
20
+ debug self => _5 ;
21
+ let mut _6 : &mut impl Iterator<Item = T>;
22
+ let mut _7 : &mut impl Fn(T) -> Option<U>;
24
23
}
25
24
}
26
25
scope 3 (inlined <FilterMap<impl Iterator<Item = T>, impl Fn(T) -> Option<U>> as IntoIterator>::into_iter) {
27
26
debug self => _3;
28
27
}
29
28
30
29
bb0 : {
31
- StorageLive(_4);
32
30
StorageLive(_3);
33
31
_3 = <impl Iterator<Item = T> as Iterator>::filter_map::<U, impl Fn(T) -> Option<U>>(move _1, move _2) -> bb1;
34
32
}
35
33
36
34
bb1 : {
35
+ StorageLive(_4);
37
36
_4 = move _3;
38
37
StorageDead(_3);
39
- StorageLive(_5);
40
- _5 = move _4;
41
38
goto -> bb2;
42
39
}
43
40
44
41
bb2 : {
45
- StorageLive(_9);
46
- _6 = &mut _5;
47
- StorageLive(_7);
48
- _7 = &mut ((*_6).0 : impl Iterator<Item = T>);
49
42
StorageLive(_8);
50
- _8 = &mut ((*_6).1 : impl Fn(T) -> Option<U>);
51
- _9 = <impl Iterator<Item = T> as Iterator>::find_map::<U, &mut impl Fn(T) -> Option<U>>(move _7, move _8) -> [return : bb3, unwind: bb9];
43
+ _5 = &mut _4;
44
+ StorageLive(_6);
45
+ _6 = &mut ((*_5).0 : impl Iterator<Item = T>);
46
+ StorageLive(_7);
47
+ _7 = &mut ((*_5).1 : impl Fn(T) -> Option<U>);
48
+ _8 = <impl Iterator<Item = T> as Iterator>::find_map::<U, &mut impl Fn(T) -> Option<U>>(move _6, move _7) -> [return : bb3, unwind: bb9];
52
49
}
53
50
54
51
bb3 : {
55
- StorageDead(_8);
56
52
StorageDead(_7);
57
- _10 = discriminant(_9);
58
- switchInt(move _10) -> [0 : bb4, 1: bb6, otherwise: bb8];
53
+ StorageDead(_6);
54
+ _9 = discriminant(_8);
55
+ switchInt(move _9) -> [0 : bb4, 1: bb6, otherwise: bb8];
59
56
}
60
57
61
58
bb4 : {
62
- StorageDead(_9 );
63
- drop(_5 ) -> bb5;
59
+ StorageDead(_8 );
60
+ drop(_4 ) -> bb5;
64
61
}
65
62
66
63
bb5 : {
67
- StorageDead(_5);
68
64
StorageDead(_4);
69
65
return;
70
66
}
71
67
72
68
bb6 : {
73
- _11 = move ((_9 as Some).0 : U);
74
- _12 = opaque::<U>(move _11 ) -> [return : bb7, unwind: bb9];
69
+ _10 = move ((_8 as Some).0 : U);
70
+ _11 = opaque::<U>(move _10 ) -> [return : bb7, unwind: bb9];
75
71
}
76
72
77
73
bb7 : {
78
- StorageDead(_9 );
74
+ StorageDead(_8 );
79
75
goto -> bb2;
80
76
}
81
77
@@ -84,7 +80,7 @@ fn filter_mapped(_1: impl Iterator<Item = T>, _2: impl Fn(T) -> Option<U>) -> ()
84
80
}
85
81
86
82
bb9 (cleanup) : {
87
- drop(_5 ) -> [return : bb10, unwind terminate];
83
+ drop(_4 ) -> [return : bb10, unwind terminate];
88
84
}
89
85
90
86
bb10 (cleanup) : {
0 commit comments