11error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
2- --> $DIR/trailing_zero_sized_array_without_repr .rs:6:1
2+ --> $DIR/trailing_empty_array .rs:6:1
33 |
44LL | / struct RarelyUseful {
55LL | | field: i32,
66LL | | last: [usize; 0],
77LL | | }
88 | |_^
99 |
10- = note: `-D clippy::trailing-zero-sized- array-without-repr ` implied by `-D warnings`
10+ = note: `-D clippy::trailing-empty- array` implied by `-D warnings`
1111 = help: consider annotating `RarelyUseful` with `#[repr(C)]` or another `repr` attribute
1212
1313error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
14- --> $DIR/trailing_zero_sized_array_without_repr .rs:11:1
14+ --> $DIR/trailing_empty_array .rs:11:1
1515 |
1616LL | / struct OnlyField {
1717LL | | first_and_last: [usize; 0],
@@ -21,7 +21,7 @@ LL | | }
2121 = help: consider annotating `OnlyField` with `#[repr(C)]` or another `repr` attribute
2222
2323error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
24- --> $DIR/trailing_zero_sized_array_without_repr .rs:15:1
24+ --> $DIR/trailing_empty_array .rs:15:1
2525 |
2626LL | / struct GenericArrayType<T> {
2727LL | | field: i32,
@@ -32,7 +32,7 @@ LL | | }
3232 = help: consider annotating `GenericArrayType` with `#[repr(C)]` or another `repr` attribute
3333
3434error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
35- --> $DIR/trailing_zero_sized_array_without_repr .rs:21:1
35+ --> $DIR/trailing_empty_array .rs:21:1
3636 |
3737LL | / struct OnlyAnotherAttribute {
3838LL | | field: i32,
@@ -43,7 +43,7 @@ LL | | }
4343 = help: consider annotating `OnlyAnotherAttribute` with `#[repr(C)]` or another `repr` attribute
4444
4545error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
46- --> $DIR/trailing_zero_sized_array_without_repr .rs:29 :1
46+ --> $DIR/trailing_empty_array .rs:27 :1
4747 |
4848LL | / struct OnlyADeriveAttribute {
4949LL | | field: i32,
@@ -54,7 +54,7 @@ LL | | }
5454 = help: consider annotating `OnlyADeriveAttribute` with `#[repr(C)]` or another `repr` attribute
5555
5656error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
57- --> $DIR/trailing_zero_sized_array_without_repr .rs:35 :1
57+ --> $DIR/trailing_empty_array .rs:33 :1
5858 |
5959LL | / struct ZeroSizedWithConst {
6060LL | | field: i32,
@@ -65,7 +65,7 @@ LL | | }
6565 = help: consider annotating `ZeroSizedWithConst` with `#[repr(C)]` or another `repr` attribute
6666
6767error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
68- --> $DIR/trailing_zero_sized_array_without_repr .rs:44 :1
68+ --> $DIR/trailing_empty_array .rs:42 :1
6969 |
7070LL | / struct ZeroSizedWithConstFunction {
7171LL | | field: i32,
@@ -76,7 +76,7 @@ LL | | }
7676 = help: consider annotating `ZeroSizedWithConstFunction` with `#[repr(C)]` or another `repr` attribute
7777
7878error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
79- --> $DIR/trailing_zero_sized_array_without_repr .rs:52 :1
79+ --> $DIR/trailing_empty_array .rs:50 :1
8080 |
8181LL | / struct ZeroSizedWithConstFunction2 {
8282LL | | field: i32,
@@ -87,23 +87,23 @@ LL | | }
8787 = help: consider annotating `ZeroSizedWithConstFunction2` with `#[repr(C)]` or another `repr` attribute
8888
8989error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
90- --> $DIR/trailing_zero_sized_array_without_repr .rs:57 :1
90+ --> $DIR/trailing_empty_array .rs:55 :1
9191 |
9292LL | struct ZeroSizedArrayWrapper([usize; 0]);
9393 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9494 |
9595 = help: consider annotating `ZeroSizedArrayWrapper` with `#[repr(C)]` or another `repr` attribute
9696
9797error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
98- --> $DIR/trailing_zero_sized_array_without_repr .rs:59 :1
98+ --> $DIR/trailing_empty_array .rs:57 :1
9999 |
100100LL | struct TupleStruct(i32, [usize; 0]);
101101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102102 |
103103 = help: consider annotating `TupleStruct` with `#[repr(C)]` or another `repr` attribute
104104
105105error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
106- --> $DIR/trailing_zero_sized_array_without_repr .rs:61 :1
106+ --> $DIR/trailing_empty_array .rs:59 :1
107107 |
108108LL | / struct LotsOfFields {
109109LL | | f1: u32,
0 commit comments