about summary refs log tree commit diff
path: root/clippy_lints/src/large_stack_frames.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2023-11-02 17:35:56 +0100
committerPhilipp Krones <hello@philkrones.com>2023-11-02 17:35:56 +0100
commit77c1e3aaa10aa78e7841b03a674acdc22bb6f758 (patch)
tree840e473e53f199f0e49a49c20d2e7c7dcf801828 /clippy_lints/src/large_stack_frames.rs
parentaae86ccc473aee83059a0bf21db9847bc65a5c37 (diff)
downloadrust-77c1e3aaa10aa78e7841b03a674acdc22bb6f758.tar.gz
rust-77c1e3aaa10aa78e7841b03a674acdc22bb6f758.zip
Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup
Diffstat (limited to 'clippy_lints/src/large_stack_frames.rs')
-rw-r--r--clippy_lints/src/large_stack_frames.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/large_stack_frames.rs b/clippy_lints/src/large_stack_frames.rs
index 1d28d7dd0e7..33636eb687f 100644
--- a/clippy_lints/src/large_stack_frames.rs
+++ b/clippy_lints/src/large_stack_frames.rs
@@ -49,7 +49,7 @@ declare_clippy_lint! {
     /// ### Example
     /// This function creates four 500 KB arrays on the stack. Quite big but just small enough to not trigger `large_stack_arrays`.
     /// However, looking at the function as a whole, it's clear that this uses a lot of stack space.
-    /// ```rust
+    /// ```no_run
     /// struct QuiteLargeType([u8; 500_000]);
     /// fn foo() {
     ///     // ... some function that uses a lot of stack space ...
@@ -62,7 +62,7 @@ declare_clippy_lint! {
     ///
     /// Instead of doing this, allocate the arrays on the heap.
     /// This currently requires going through a `Vec` first and then converting it to a `Box`:
-    /// ```rust
+    /// ```no_run
     /// struct NotSoLargeType(Box<[u8]>);
     ///
     /// fn foo() {