@@ -32,13 +32,13 @@ fn infer_pattern() {
3232 }
3333 "# ,
3434 expect ! [ [ r#"
35- 8..9 'x': &'? i32
35+ 8..9 'x': &'_ i32
3636 17..399 '{ ...o_x; }': ()
3737 27..28 'y': &'? i32
38- 31..32 'x': &'? i32
38+ 31..32 'x': &'_ i32
3939 42..44 '&z': &'? i32
4040 43..44 'z': i32
41- 47..48 'x': &'? i32
41+ 47..48 'x': &'_ i32
4242 58..59 'a': i32
4343 62..63 'z': i32
4444 73..79 '(c, d)': (i32, &'? str)
@@ -50,7 +50,7 @@ fn infer_pattern() {
5050 101..150 'for (e... }': !
5151 101..150 'for (e... }': IntoIter<(i32, i32), 1>
5252 101..150 'for (e... }': &'? mut IntoIter<(i32, i32), 1>
53- 101..150 'for (e... }': fn next<IntoIter<(i32, i32), 1>>(&'? mut IntoIter<(i32, i32), 1>) -> Option<<IntoIter<(i32, i32), 1> as Iterator>::Item>
53+ 101..150 'for (e... }': fn next<IntoIter<(i32, i32), 1>>(&'?0.0 mut IntoIter<(i32, i32), 1>) -> Option<<IntoIter<(i32, i32), 1> as Iterator>::Item>
5454 101..150 'for (e... }': Option<(i32, i32)>
5555 101..150 'for (e... }': ()
5656 101..150 'for (e... }': ()
@@ -95,14 +95,14 @@ fn infer_pattern() {
9595 276..281 'a + b': u64
9696 280..281 'b': u64
9797 283..284 'c': i32
98- 297..309 'ref ref_to_x': &'? &'? i32
99- 312..313 'x': &'? i32
98+ 297..309 'ref ref_to_x': &'? &'_ i32
99+ 312..313 'x': &'_ i32
100100 323..332 'mut mut_x': &'? i32
101- 335..336 'x': &'? i32
102- 346..366 'ref mu...f_to_x': &'? mut &'? i32
103- 369..370 'x': &'? i32
104- 380..381 'k': &'? mut &'? i32
105- 384..396 'mut_ref_to_x': &'? mut &'? i32
101+ 335..336 'x': &'_ i32
102+ 346..366 'ref mu...f_to_x': &'? mut &'_ i32
103+ 369..370 'x': &'_ i32
104+ 380..381 'k': &'? mut &'_ i32
105+ 384..396 'mut_ref_to_x': &'? mut &'_ i32
106106 "# ] ] ,
107107 ) ;
108108}
@@ -127,7 +127,7 @@ fn infer_literal_pattern() {
127127 17..28 '{ loop {} }': T
128128 19..26 'loop {}': !
129129 24..26 '{}': ()
130- 37..38 'x': &'? i32
130+ 37..38 'x': &'_ i32
131131 46..263 '{ ...) {} }': ()
132132 52..75 'if let...y() {}': ()
133133 55..72 'let "f... any()': bool
@@ -394,7 +394,7 @@ fn infer_pattern_match_byte_string_literal() {
394394 }
395395 "# ,
396396 expect ! [ [ r#"
397- 105..109 'self': &'? [T; N]
397+ 105..109 'self': &'_ [T; N]
398398 111..116 'index': RangeFull
399399 157..180 '{ ... }': &'? [u8]
400400 167..174 'loop {}': !
@@ -705,7 +705,7 @@ fn main() {
705705}
706706 "# ,
707707 expect ! [ [ r#"
708- 27..31 'self': &'? S
708+ 27..31 'self': &'_ S
709709 41..50 '{ false }': bool
710710 43..48 'false': bool
711711 64..115 '{ ... } }': ()
@@ -777,10 +777,10 @@ fn slice_tail_pattern() {
777777 }
778778 "# ,
779779 expect ! [ [ r#"
780- 7..13 'params': &'? [i32]
780+ 7..13 'params': &'_ [i32]
781781 23..92 '{ ... } }': ()
782782 29..90 'match ... }': ()
783- 35..41 'params': &'? [i32]
783+ 35..41 'params': &'_ [i32]
784784 52..69 '[head,... @ ..]': [i32]
785785 53..57 'head': &'? i32
786786 59..68 'tail @ ..': &'? [i32]
@@ -1338,23 +1338,23 @@ fn foo(v: &Box<Foo<i32>>) {
13381338}
13391339 "# ,
13401340 expect ! [ [ r#"
1341- 142..146 'self': &'? Box<T>
1341+ 142..146 'self': &'_ Box<T>
13421342 165..188 '{ ... }': &'? T
13431343 175..182 'loop {}': !
13441344 180..182 '{}': ()
1345- 310..314 'self': &'? Foo<T>
1345+ 310..314 'self': &'_ Foo<T>
13461346 333..356 '{ ... }': &'? [T]
13471347 343..350 'loop {}': !
13481348 348..350 '{}': ()
13491349 !0..20 'builti...inner)': Foo<i32>
13501350 !0..28 'builti...nner))': Box<Foo<i32>>
13511351 !14..19 'inner': &'? [i32]
1352- 399..400 'v': &'? Box<Foo<i32>>
1352+ 399..400 'v': &'_ Box<Foo<i32>>
13531353 418..493 '{ ... } }': ()
13541354 424..491 'match ... }': ()
1355- 430..431 'v': &'? Box<Foo<i32>>
1355+ 430..431 'v': &'_ Box<Foo<i32>>
13561356 467..469 '{}': ()
1357- 478..479 '_': &'? Box<Foo<i32>>
1357+ 478..479 '_': &'_ Box<Foo<i32>>
13581358 483..485 '{}': ()
13591359 "# ] ] ,
13601360 ) ;
0 commit comments