Skip to content

Commit a54dbf6

Browse files
committed
Improve doc and span messages
1 parent a6aa986 commit a54dbf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/trailing_zero_sized_array_without_repr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare_clippy_lint! {
3131
/// ```
3232
pub TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR,
3333
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"
3535
}
3636
declare_lint_pass!(TrailingZeroSizedArrayWithoutRepr => [TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR]);
3737

@@ -54,9 +54,9 @@ impl<'tcx> LateLintPass<'tcx> for TrailingZeroSizedArrayWithoutRepr {
5454
cx,
5555
TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR,
5656
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",
5858
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",
6060
);
6161
}
6262
}

0 commit comments

Comments
 (0)