@@ -19,133 +19,133 @@ LL | fn in_and_out<'a>(x: &'a u8, _y: u8) -> &'a u8 {
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020
2121error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
22- --> $DIR/needless_lifetimes.rs:45 :1
22+ --> $DIR/needless_lifetimes.rs:50 :1
2323 |
2424LL | fn deep_reference_3<'a>(x: &'a u8, _y: u8) -> Result<&'a u8, ()> {
2525 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
2727error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
28- --> $DIR/needless_lifetimes.rs:50 :1
28+ --> $DIR/needless_lifetimes.rs:55 :1
2929 |
3030LL | fn where_clause_without_lt<'a, T>(x: &'a u8, _y: u8) -> Result<&'a u8, ()>
3131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232
3333error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
34- --> $DIR/needless_lifetimes.rs:62 :1
34+ --> $DIR/needless_lifetimes.rs:67 :1
3535 |
3636LL | fn lifetime_param_2<'a, 'b>(_x: Ref<'a>, _y: &'b u8) {}
3737 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3838
3939error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
40- --> $DIR/needless_lifetimes.rs:86 :1
40+ --> $DIR/needless_lifetimes.rs:91 :1
4141 |
4242LL | fn fn_bound_2<'a, F, I>(_m: Lt<'a, I>, _f: F) -> Lt<'a, I>
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4444
4545error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
46- --> $DIR/needless_lifetimes.rs:116 :5
46+ --> $DIR/needless_lifetimes.rs:121 :5
4747 |
4848LL | fn self_and_out<'s>(&'s self) -> &'s u8 {
4949 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050
5151error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
52- --> $DIR/needless_lifetimes.rs:125 :5
52+ --> $DIR/needless_lifetimes.rs:130 :5
5353 |
5454LL | fn distinct_self_and_in<'s, 't>(&'s self, _x: &'t u8) {}
5555 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5656
5757error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
58- --> $DIR/needless_lifetimes.rs:144 :1
58+ --> $DIR/needless_lifetimes.rs:149 :1
5959 |
6060LL | fn struct_with_lt<'a>(_foo: Foo<'a>) -> &'a str {
6161 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6262
6363error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
64- --> $DIR/needless_lifetimes.rs:174 :1
64+ --> $DIR/needless_lifetimes.rs:179 :1
6565 |
6666LL | fn trait_obj_elided2<'a>(_arg: &'a dyn Drop) -> &'a str {
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6868
6969error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
70- --> $DIR/needless_lifetimes.rs:180 :1
70+ --> $DIR/needless_lifetimes.rs:185 :1
7171 |
7272LL | fn alias_with_lt<'a>(_foo: FooAlias<'a>) -> &'a str {
7373 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7474
7575error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
76- --> $DIR/needless_lifetimes.rs:199 :1
76+ --> $DIR/needless_lifetimes.rs:204 :1
7777 |
7878LL | fn named_input_elided_output<'a>(_arg: &'a str) -> &str {
7979 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8080
8181error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
82- --> $DIR/needless_lifetimes.rs:207 :1
82+ --> $DIR/needless_lifetimes.rs:212 :1
8383 |
8484LL | fn trait_bound_ok<'a, T: WithLifetime<'static>>(_: &'a u8, _: T) {
8585 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8686
8787error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
88- --> $DIR/needless_lifetimes.rs:243 :1
88+ --> $DIR/needless_lifetimes.rs:248 :1
8989 |
9090LL | fn out_return_type_lts<'a>(e: &'a str) -> Cow<'a> {
9191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9292
9393error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
94- --> $DIR/needless_lifetimes.rs:250 :9
94+ --> $DIR/needless_lifetimes.rs:255 :9
9595 |
9696LL | fn needless_lt<'a>(x: &'a u8) {}
9797 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9898
9999error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
100- --> $DIR/needless_lifetimes.rs:254 :9
100+ --> $DIR/needless_lifetimes.rs:259 :9
101101 |
102102LL | fn needless_lt<'a>(_x: &'a u8) {}
103103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104104
105105error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
106- --> $DIR/needless_lifetimes.rs:267 :9
106+ --> $DIR/needless_lifetimes.rs:272 :9
107107 |
108108LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
109109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110110
111111error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
112- --> $DIR/needless_lifetimes.rs:296 :5
112+ --> $DIR/needless_lifetimes.rs:301 :5
113113 |
114114LL | fn impl_trait_elidable_nested_named_lifetimes<'a>(i: &'a i32, f: impl for<'b> Fn(&'b i32) -> &'b i32) -> &'a i32 {
115115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116116
117117error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
118- --> $DIR/needless_lifetimes.rs:299 :5
118+ --> $DIR/needless_lifetimes.rs:304 :5
119119 |
120120LL | fn impl_trait_elidable_nested_anonymous_lifetimes<'a>(i: &'a i32, f: impl Fn(&i32) -> &i32) -> &'a i32 {
121121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122122
123123error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
124- --> $DIR/needless_lifetimes.rs:308 :5
124+ --> $DIR/needless_lifetimes.rs:313 :5
125125 |
126126LL | fn generics_elidable<'a, T: Fn(&i32) -> &i32>(i: &'a i32, f: T) -> &'a i32 {
127127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128128
129129error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
130- --> $DIR/needless_lifetimes.rs:320 :5
130+ --> $DIR/needless_lifetimes.rs:325 :5
131131 |
132132LL | fn where_clause_elidadable<'a, T>(i: &'a i32, f: T) -> &'a i32
133133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134134
135135error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
136- --> $DIR/needless_lifetimes.rs:335 :5
136+ --> $DIR/needless_lifetimes.rs:340 :5
137137 |
138138LL | fn pointer_fn_elidable<'a>(i: &'a i32, f: fn(&i32) -> &i32) -> &'a i32 {
139139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140140
141141error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
142- --> $DIR/needless_lifetimes.rs:348 :5
142+ --> $DIR/needless_lifetimes.rs:353 :5
143143 |
144144LL | fn nested_fn_pointer_3<'a>(_: &'a i32) -> fn(fn(&i32) -> &i32) -> i32 {
145145 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146146
147147error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
148- --> $DIR/needless_lifetimes.rs:351 :5
148+ --> $DIR/needless_lifetimes.rs:356 :5
149149 |
150150LL | fn nested_fn_pointer_4<'a>(_: &'a i32) -> impl Fn(fn(&i32)) {
151151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments