Skip to content

Commit 7a06d7e

Browse files
committed
[new_without_default]: lifetimes are included in output
The comment was likely obsolete.
1 parent 75370e0 commit 7a06d7e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/ui/new_without_default.rs

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ impl<'c> LtKo<'c> {
8484
pub fn new() -> LtKo<'c> {
8585
unimplemented!()
8686
}
87-
// FIXME: that suggestion is missing lifetimes
8887
}
8988

9089
struct Private;

tests/ui/new_without_default.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LL + }
5151
|
5252

5353
error: you should consider adding a `Default` implementation for `NewNotEqualToDerive`
54-
--> $DIR/new_without_default.rs:177:5
54+
--> $DIR/new_without_default.rs:176:5
5555
|
5656
LL | / pub fn new() -> Self {
5757
LL | | NewNotEqualToDerive { foo: 1 }
@@ -68,7 +68,7 @@ LL + }
6868
|
6969

7070
error: you should consider adding a `Default` implementation for `FooGenerics<T>`
71-
--> $DIR/new_without_default.rs:185:5
71+
--> $DIR/new_without_default.rs:184:5
7272
|
7373
LL | / pub fn new() -> Self {
7474
LL | | Self(Default::default())
@@ -85,7 +85,7 @@ LL + }
8585
|
8686

8787
error: you should consider adding a `Default` implementation for `BarGenerics<T>`
88-
--> $DIR/new_without_default.rs:192:5
88+
--> $DIR/new_without_default.rs:191:5
8989
|
9090
LL | / pub fn new() -> Self {
9191
LL | | Self(Default::default())
@@ -102,7 +102,7 @@ LL + }
102102
|
103103

104104
error: you should consider adding a `Default` implementation for `Foo<T>`
105-
--> $DIR/new_without_default.rs:203:9
105+
--> $DIR/new_without_default.rs:202:9
106106
|
107107
LL | / pub fn new() -> Self {
108108
LL | | todo!()

0 commit comments

Comments
 (0)