diff options
| author | Nathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com> | 2021-10-18 04:59:03 -0700 |
|---|---|---|
| committer | Nathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com> | 2021-10-18 04:59:03 -0700 |
| commit | ab9fa25e82b3af4691df275f53c73bc439e84d78 (patch) | |
| tree | c96b56a474babae462b65270a21d1d0b16ff3bec | |
| parent | d25b4eeefbcb6e2755b0843b0a66de0f5a744460 (diff) | |
| download | rust-ab9fa25e82b3af4691df275f53c73bc439e84d78.tar.gz rust-ab9fa25e82b3af4691df275f53c73bc439e84d78.zip | |
Better testcase names
| -rw-r--r-- | tests/ui/trailing_zero_sized_array_without_repr.rs | 8 | ||||
| -rw-r--r-- | tests/ui/trailing_zero_sized_array_without_repr.stderr | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/trailing_zero_sized_array_without_repr.rs b/tests/ui/trailing_zero_sized_array_without_repr.rs index 5b12a882aa7..52966c64db7 100644 --- a/tests/ui/trailing_zero_sized_array_without_repr.rs +++ b/tests/ui/trailing_zero_sized_array_without_repr.rs @@ -18,7 +18,7 @@ struct GenericArrayType<T> { } #[must_use] -struct OnlyAnotherAttributeMustUse { +struct OnlyAnotherAttribute { field: i32, last: [usize; 0], } @@ -26,7 +26,7 @@ struct OnlyAnotherAttributeMustUse { // NOTE: Unfortunately the attribute isn't included in the lint output. I'm not sure how to make it // show up. #[derive(Debug)] -struct OnlyAnotherAttributeDerive { +struct OnlyADeriveAttribute { field: i32, last: [usize; 0], } @@ -102,14 +102,14 @@ struct NonZeroSizedWithConst { #[derive(Debug)] #[repr(C)] -struct OtherAttributesDerive { +struct AlsoADeriveAttribute { field: i32, last: [usize; 0], } #[must_use] #[repr(C)] -struct OtherAttributesMustUse { +struct AlsoAnotherAttribute { field: i32, last: [usize; 0], } diff --git a/tests/ui/trailing_zero_sized_array_without_repr.stderr b/tests/ui/trailing_zero_sized_array_without_repr.stderr index 54b36ec6cec..e5714386c8b 100644 --- a/tests/ui/trailing_zero_sized_array_without_repr.stderr +++ b/tests/ui/trailing_zero_sized_array_without_repr.stderr @@ -35,7 +35,7 @@ error: trailing zero-sized array in a struct which is not marked with a `repr` a --> $DIR/trailing_zero_sized_array_without_repr.rs:20:1 | LL | / #[must_use] -LL | | struct OnlyAnotherAttributeMustUse { +LL | | struct OnlyAnotherAttribute { LL | | field: i32, LL | | last: [usize; 0], LL | | } @@ -46,7 +46,7 @@ LL | | } error: trailing zero-sized array in a struct which is not marked with a `repr` attribute --> $DIR/trailing_zero_sized_array_without_repr.rs:29:1 | -LL | / struct OnlyAnotherAttributeDerive { +LL | / struct OnlyADeriveAttribute { LL | | field: i32, LL | | last: [usize; 0], LL | | } |
