Skip to content

Commit 74918b7

Browse files
committed
fix clippy test
1 parent 1f17fc2 commit 74918b7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/tools/clippy/tests/ui/new_without_default.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(const_fn)]
21
#![allow(dead_code, clippy::missing_safety_doc)]
32
#![warn(clippy::new_without_default)]
43

src/tools/clippy/tests/ui/new_without_default.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: you should consider adding a `Default` implementation for `Foo`
2-
--> $DIR/new_without_default.rs:8:5
2+
--> $DIR/new_without_default.rs:7:5
33
|
44
LL | / pub fn new() -> Foo {
55
LL | | Foo
@@ -17,7 +17,7 @@ LL | }
1717
|
1818

1919
error: you should consider adding a `Default` implementation for `Bar`
20-
--> $DIR/new_without_default.rs:16:5
20+
--> $DIR/new_without_default.rs:15:5
2121
|
2222
LL | / pub fn new() -> Self {
2323
LL | | Bar
@@ -34,7 +34,7 @@ LL | }
3434
|
3535

3636
error: you should consider adding a `Default` implementation for `LtKo<'c>`
37-
--> $DIR/new_without_default.rs:80:5
37+
--> $DIR/new_without_default.rs:79:5
3838
|
3939
LL | / pub fn new() -> LtKo<'c> {
4040
LL | | unimplemented!()
@@ -51,7 +51,7 @@ LL | }
5151
|
5252

5353
error: you should consider adding a `Default` implementation for `NewNotEqualToDerive`
54-
--> $DIR/new_without_default.rs:157:5
54+
--> $DIR/new_without_default.rs:156: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:165:5
71+
--> $DIR/new_without_default.rs:164: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:172:5
88+
--> $DIR/new_without_default.rs:171:5
8989
|
9090
LL | / pub fn new() -> Self {
9191
LL | | Self(Default::default())

0 commit comments

Comments
 (0)