diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-11-02 17:35:56 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-11-02 17:35:56 +0100 |
| commit | 77c1e3aaa10aa78e7841b03a674acdc22bb6f758 (patch) | |
| tree | 840e473e53f199f0e49a49c20d2e7c7dcf801828 /clippy_lints/src/trailing_empty_array.rs | |
| parent | aae86ccc473aee83059a0bf21db9847bc65a5c37 (diff) | |
| download | rust-77c1e3aaa10aa78e7841b03a674acdc22bb6f758.tar.gz rust-77c1e3aaa10aa78e7841b03a674acdc22bb6f758.zip | |
Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup
Diffstat (limited to 'clippy_lints/src/trailing_empty_array.rs')
| -rw-r--r-- | clippy_lints/src/trailing_empty_array.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/trailing_empty_array.rs b/clippy_lints/src/trailing_empty_array.rs index bb9da3a2047..87181adc24b 100644 --- a/clippy_lints/src/trailing_empty_array.rs +++ b/clippy_lints/src/trailing_empty_array.rs @@ -13,7 +13,7 @@ declare_clippy_lint! { /// Zero-sized arrays aren't very useful in Rust itself, so such a struct is likely being created to pass to C code or in some other situation where control over memory layout matters (for example, in conjunction with manual allocation to make it easy to compute the offset of the array). Either way, `#[repr(C)]` (or another `repr` attribute) is needed. /// /// ### Example - /// ```rust + /// ```no_run /// struct RarelyUseful { /// some_field: u32, /// last: [u32; 0], @@ -21,7 +21,7 @@ declare_clippy_lint! { /// ``` /// /// Use instead: - /// ```rust + /// ```no_run /// #[repr(C)] /// struct MoreOftenUseful { /// some_field: usize, |
