File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ LL | fn unused_lt<'a>(x: u8) {}
6
6
|
7
7
= note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
8
8
9
- error: this lifetime isn't used in the function definition
10
- --> $DIR/extra_unused_lifetimes.rs:16:25
11
- |
12
- LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) {
13
- | ^^
14
-
15
9
error: this lifetime isn't used in the function definition
16
10
--> $DIR/extra_unused_lifetimes.rs:41:10
17
11
|
@@ -24,5 +18,5 @@ error: this lifetime isn't used in the function definition
24
18
LL | fn unused_lt<'a>(x: u8) {}
25
19
| ^^
26
20
27
- error: aborting due to 4 previous errors
21
+ error: aborting due to 3 previous errors
28
22
Original file line number Diff line number Diff line change @@ -108,12 +108,6 @@ error: explicit lifetimes given in parameter types where they could be elided (o
108
108
LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
109
109
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
110
111
- error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
112
- --> $DIR/needless_lifetimes.rs:307:5
113
- |
114
- LL | fn impl_trait_elidable_nested_named_lifetimes<'a>(i: &'a i32, f: impl for<'b> Fn(&'b i32) -> &'b i32) -> &'a i32 {
115
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
-
117
111
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
118
112
--> $DIR/needless_lifetimes.rs:310:5
119
113
|
@@ -192,5 +186,5 @@ error: explicit lifetimes given in parameter types where they could be elided (o
192
186
LL | fn lifetime_elsewhere_provided<'a>(self: Box<Self>, here: &'a ()) -> &'a () {
193
187
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194
188
195
- error: aborting due to 32 previous errors
189
+ error: aborting due to 31 previous errors
196
190
You can’t perform that action at this time.
0 commit comments