diff options
| author | Alex Macleod <alex@macleod.io> | 2023-10-23 13:49:18 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2023-10-23 15:28:26 +0000 |
| commit | 7347c1803fa9c151033eb30fd722ff6d6d08ee49 (patch) | |
| tree | 362668da264adea11bfd86e11184327d7c9782f0 /clippy_lints/src/large_stack_frames.rs | |
| parent | 56ece10c88c6fb93cc3592606b364c201fb45127 (diff) | |
Set existing doc-tests to `no_run`
Diffstat (limited to 'clippy_lints/src/large_stack_frames.rs')
| -rw-r--r-- | clippy_lints/src/large_stack_frames.rs | 4 |
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() { |
