Skip to content

Commit 124420f

Browse files
committed
needless-lifetime / fix master merge
1 parent 7cfe3dc commit 124420f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/crashes/ice-2774.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
2-
--> $DIR/ice-2774.rs:17:1
2+
--> $DIR/ice-2774.rs:15:1
33
|
44
LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/ui/crashes/needless_lifetimes_impl_trait.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
2-
--> $DIR/needless_lifetimes_impl_trait.rs:17:5
2+
--> $DIR/needless_lifetimes_impl_trait.rs:15:5
33
|
44
LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: the lint level is defined here
8-
--> $DIR/needless_lifetimes_impl_trait.rs:3:9
8+
--> $DIR/needless_lifetimes_impl_trait.rs:1:9
99
|
1010
LL | #![deny(clippy::needless_lifetimes)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)