Skip to content

Commit e46c782

Browse files
committed
Bless tests.
1 parent e2d923a commit e46c782

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

tests/ui/extra_unused_lifetimes.stderr

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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-
159
error: 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
2418
LL | 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

tests/ui/needless_lifetimes.stderr

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ error: explicit lifetimes given in parameter types where they could be elided (o
108108
LL | 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-
117111
error: 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
192186
LL | 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

0 commit comments

Comments
 (0)