about summary refs log tree commit diff
path: root/clippy_lints/src/trailing_empty_array.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2023-11-02 17:01:56 +0100
committerPhilipp Krones <hello@philkrones.com>2023-11-02 17:24:19 +0100
commit95dc7be92f8087ae3c8b9532f2674dabceee3d4d (patch)
treeef0c270a62fecc20762256ced06e1a8db9ccb74c /clippy_lints/src/trailing_empty_array.rs
parent2e907aa90c67d73fadc9be54c6609f618045c10c (diff)
parent01a0a3666681b88c3cab5ffc440bdd74352093dd (diff)
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/trailing_empty_array.rs')
-rw-r--r--clippy_lints/src/trailing_empty_array.rs4
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,