Still renaming lmao

This commit is contained in:
Nathaniel Hamovitz 2021-10-18 03:56:49 -07:00
parent a54dbf6445
commit 5b78907be7

View file

@ -1,110 +0,0 @@
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:6:1
|
LL | / struct RarelyUseful {
LL | | field: i32,
LL | | last: [usize; 0],
LL | | }
| |_^
|
= note: `-D clippy::trailing-zero-sized-array-without-repr-c` implied by `-D warnings`
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:11:1
|
LL | / struct OnlyField {
LL | | first_and_last: [usize; 0],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:15:1
|
LL | / struct GenericArrayType<T> {
LL | | field: i32,
LL | | last: [T; 0],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:20:1
|
LL | / #[must_use]
LL | | struct OnlyAnotherAttributeMustUse {
LL | | field: i32,
LL | | last: [usize; 0],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:29:1
|
LL | / struct OnlyAnotherAttributeDerive {
LL | | field: i32,
LL | | last: [usize; 0],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:35:1
|
LL | / struct ZeroSizedWithConst {
LL | | field: i32,
LL | | last: [usize; ZERO],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:44:1
|
LL | / struct ZeroSizedWithConstFunction {
LL | | field: i32,
LL | | last: [usize; compute_zero()],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:49:1
|
LL | struct ZeroSizedArrayWrapper([usize; 0]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:51:1
|
LL | struct TupleStruct(i32, [usize; 0]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
--> $DIR/trailing_zero_sized_array_without_repr_c.rs:53:1
|
LL | / struct LotsOfFields {
LL | | f1: u32,
LL | | f2: u32,
LL | | f3: u32,
... |
LL | | last: [usize; 0],
LL | | }
| |_^
|
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
error: aborting due to 10 previous errors