Skip to content

Commit

Permalink
Better testcase names
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamovitz committed Oct 18, 2021
1 parent d25b4ee commit ab9fa25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/ui/trailing_zero_sized_array_without_repr.rs
Expand Up @@ -18,15 +18,15 @@ struct GenericArrayType<T> {
}

#[must_use]
struct OnlyAnotherAttributeMustUse {
struct OnlyAnotherAttribute {
field: i32,
last: [usize; 0],
}

// 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],
}
Expand Down Expand Up @@ -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],
}
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/trailing_zero_sized_array_without_repr.stderr
Expand Up @@ -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 | | }
Expand All @@ -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 | | }
Expand Down

0 comments on commit ab9fa25

Please sign in to comment.