Better testcase names
This commit is contained in:
parent
d25b4eeefb
commit
ab9fa25e82
2 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ struct GenericArrayType<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
struct OnlyAnotherAttributeMustUse {
|
struct OnlyAnotherAttribute {
|
||||||
field: i32,
|
field: i32,
|
||||||
last: [usize; 0],
|
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
|
// NOTE: Unfortunately the attribute isn't included in the lint output. I'm not sure how to make it
|
||||||
// show up.
|
// show up.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct OnlyAnotherAttributeDerive {
|
struct OnlyADeriveAttribute {
|
||||||
field: i32,
|
field: i32,
|
||||||
last: [usize; 0],
|
last: [usize; 0],
|
||||||
}
|
}
|
||||||
|
@ -102,14 +102,14 @@ struct NonZeroSizedWithConst {
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
struct OtherAttributesDerive {
|
struct AlsoADeriveAttribute {
|
||||||
field: i32,
|
field: i32,
|
||||||
last: [usize; 0],
|
last: [usize; 0],
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
struct OtherAttributesMustUse {
|
struct AlsoAnotherAttribute {
|
||||||
field: i32,
|
field: i32,
|
||||||
last: [usize; 0],
|
last: [usize; 0],
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
--> $DIR/trailing_zero_sized_array_without_repr.rs:20:1
|
||||||
|
|
|
|
||||||
LL | / #[must_use]
|
LL | / #[must_use]
|
||||||
LL | | struct OnlyAnotherAttributeMustUse {
|
LL | | struct OnlyAnotherAttribute {
|
||||||
LL | | field: i32,
|
LL | | field: i32,
|
||||||
LL | | last: [usize; 0],
|
LL | | last: [usize; 0],
|
||||||
LL | | }
|
LL | | }
|
||||||
|
@ -46,7 +46,7 @@ LL | | }
|
||||||
error: trailing zero-sized array in a struct which is not marked with a `repr` attribute
|
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
|
--> $DIR/trailing_zero_sized_array_without_repr.rs:29:1
|
||||||
|
|
|
|
||||||
LL | / struct OnlyAnotherAttributeDerive {
|
LL | / struct OnlyADeriveAttribute {
|
||||||
LL | | field: i32,
|
LL | | field: i32,
|
||||||
LL | | last: [usize; 0],
|
LL | | last: [usize; 0],
|
||||||
LL | | }
|
LL | | }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue