Skip to content

Commit b1f9900

Browse files
committed
[fixup] bless all the tests
1 parent b8b69d6 commit b1f9900

File tree

228 files changed

+5639
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+5639
-35
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+

tests/ui/abi/compatibility.arm.stderr

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+

tests/ui/abi/compatibility.bpf.stderr

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/compatibility.rs:148:27
3+
|
4+
LL | pub struct NonZeroI32(i32);
5+
| ---------- ^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct NonZeroI32(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
warning: field `0` is never read
2+
--> $DIR/enum-bounds.rs:46:8
3+
|
4+
LL | V1(&'static T::As1),
5+
| -- ^^^^^^^^^^^^^^^
6+
| |
7+
| field in this variant
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | V1(()),
13+
| ~~
14+
15+
warning: field `0` is never read
16+
--> $DIR/enum-bounds.rs:50:8
17+
|
18+
LL | V0(&'x1 <T::As1 as Tr4<'x1>>::As4),
19+
| -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20+
| |
21+
| field in this variant
22+
|
23+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
24+
|
25+
LL | V0(()),
26+
| ~~
27+
28+
warning: field `0` is never read
29+
--> $DIR/enum-bounds.rs:51:8
30+
|
31+
LL | V1(&'x2 <T::As1 as Tr4<'x2>>::As4),
32+
| -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33+
| |
34+
| field in this variant
35+
|
36+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
37+
|
38+
LL | V1(()),
39+
| ~~
40+
41+
warning: field `0` is never read
42+
--> $DIR/enum-bounds.rs:65:8
43+
|
44+
LL | V2(&'static T::As1),
45+
| -- ^^^^^^^^^^^^^^^
46+
| |
47+
| field in this variant
48+
|
49+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
50+
|
51+
LL | V2(()),
52+
| ~~
53+
54+
warning: 4 warnings emitted
55+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/issue-79949.rs:9:10
3+
|
4+
LL | struct S(String);
5+
| - ^^^^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | struct S(());
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
warning: field `0` is never read
2+
--> $DIR/issue-64855-2.rs:3:20
3+
|
4+
LL | pub struct Bar<'a>(&'a Self) where Self: ;
5+
| --- ^^^^^^^^
6+
| |
7+
| field in this struct
8+
|
9+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
10+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
11+
|
12+
LL | pub struct Bar<'a>(()) where Self: ;
13+
| ~~
14+
15+
warning: 1 warning emitted
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
warning: field `0` is never read
2+
--> $DIR/issue-71113.rs:14:53
3+
|
4+
LL | pub struct MyCow<'a, T: ToOwned<Owned=Box<T>> + 'a>(Wrapper<Cow<'a, T>>);
5+
| ----- field in this struct ^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(unused_tuple_struct_fields)]` on by default
8+
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
9+
|
10+
LL | pub struct MyCow<'a, T: ToOwned<Owned=Box<T>> + 'a>(());
11+
| ~~
12+
13+
warning: 1 warning emitted
14+

0 commit comments

Comments
 (0)