File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ declare_clippy_lint! {
31
31
/// ```
32
32
pub TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR ,
33
33
nursery,
34
- "struct with a trailing zero-sized array but without `repr(C)` or another `repr` attribute"
34
+ "struct with a trailing zero-sized array but without `#[ repr(C)] ` or another `repr` attribute"
35
35
}
36
36
declare_lint_pass ! ( TrailingZeroSizedArrayWithoutRepr => [ TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR ] ) ;
37
37
@@ -54,9 +54,9 @@ impl<'tcx> LateLintPass<'tcx> for TrailingZeroSizedArrayWithoutRepr {
54
54
cx,
55
55
TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR ,
56
56
lint_span,
57
- "trailing zero-sized array in a struct which is not marked `#[ repr(C)]` " ,
57
+ "trailing zero-sized array in a struct which is not marked with a ` repr` attribute " ,
58
58
None ,
59
- "consider annotating the struct definition with `#[repr(C)]` ( or another `repr` attribute) " ,
59
+ "consider annotating the struct definition with `#[repr(C)]` or another `repr` attribute" ,
60
60
) ;
61
61
}
62
62
}
You can’t perform that action at this time.
0 commit comments