This repository was archived by the owner on May 28, 2025. It is now read-only.
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) {}
66 |
77 = note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
88
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-
159error: this lifetime isn't used in the function definition
1610 --> $DIR/extra_unused_lifetimes.rs:41:10
1711 |
@@ -24,5 +18,5 @@ error: this lifetime isn't used in the function definition
2418LL | fn unused_lt<'a>(x: u8) {}
2519 | ^^
2620
27- error: aborting due to 4 previous errors
21+ error: aborting due to 3 previous errors
2822
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
108108LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
109109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110110
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-
117111error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
118112 --> $DIR/needless_lifetimes.rs:310:5
119113 |
@@ -192,5 +186,5 @@ error: explicit lifetimes given in parameter types where they could be elided (o
192186LL | fn lifetime_elsewhere_provided<'a>(self: Box<Self>, here: &'a ()) -> &'a () {
193187 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194188
195- error: aborting due to 32 previous errors
189+ error: aborting due to 31 previous errors
196190
You can’t perform that action at this time.
0 commit comments