From 5b78907be7b67cfb598301e20a9ebd500a494c41 Mon Sep 17 00:00:00 2001 From: Nathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com> Date: Mon, 18 Oct 2021 03:56:49 -0700 Subject: [PATCH] Still renaming lmao --- ...ing_zero_sized_array_without_repr_c.stderr | 110 ------------------ 1 file changed, 110 deletions(-) delete mode 100644 tests/ui/trailing_zero_sized_array_without_repr_c.stderr diff --git a/tests/ui/trailing_zero_sized_array_without_repr_c.stderr b/tests/ui/trailing_zero_sized_array_without_repr_c.stderr deleted file mode 100644 index 5ed91e937d59..000000000000 --- a/tests/ui/trailing_zero_sized_array_without_repr_c.stderr +++ /dev/null @@ -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 { -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 -