Skip to content

Commit ab9fa25

Browse files
committed
Better testcase names
1 parent d25b4ee commit ab9fa25

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/ui/trailing_zero_sized_array_without_repr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ struct GenericArrayType<T> {
1818
}
1919

2020
#[must_use]
21-
struct OnlyAnotherAttributeMustUse {
21+
struct OnlyAnotherAttribute {
2222
field: i32,
2323
last: [usize; 0],
2424
}
2525

2626
// NOTE: Unfortunately the attribute isn't included in the lint output. I'm not sure how to make it
2727
// show up.
2828
#[derive(Debug)]
29-
struct OnlyAnotherAttributeDerive {
29+
struct OnlyADeriveAttribute {
3030
field: i32,
3131
last: [usize; 0],
3232
}
@@ -102,14 +102,14 @@ struct NonZeroSizedWithConst {
102102

103103
#[derive(Debug)]
104104
#[repr(C)]
105-
struct OtherAttributesDerive {
105+
struct AlsoADeriveAttribute {
106106
field: i32,
107107
last: [usize; 0],
108108
}
109109

110110
#[must_use]
111111
#[repr(C)]
112-
struct OtherAttributesMustUse {
112+
struct AlsoAnotherAttribute {
113113
field: i32,
114114
last: [usize; 0],
115115
}

tests/ui/trailing_zero_sized_array_without_repr.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ error: trailing zero-sized array in a struct which is not marked with a `repr` a
3535
--> $DIR/trailing_zero_sized_array_without_repr.rs:20:1
3636
|
3737
LL | / #[must_use]
38-
LL | | struct OnlyAnotherAttributeMustUse {
38+
LL | | struct OnlyAnotherAttribute {
3939
LL | | field: i32,
4040
LL | | last: [usize; 0],
4141
LL | | }
@@ -46,7 +46,7 @@ LL | | }
4646
error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
4747
--> $DIR/trailing_zero_sized_array_without_repr.rs:29:1
4848
|
49-
LL | / struct OnlyAnotherAttributeDerive {
49+
LL | / struct OnlyADeriveAttribute {
5050
LL | | field: i32,
5151
LL | | last: [usize; 0],
5252
LL | | }

0 commit comments

Comments
 (0)