diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-11-02 17:01:56 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-11-02 17:24:19 +0100 |
| commit | 95dc7be92f8087ae3c8b9532f2674dabceee3d4d (patch) | |
| tree | ef0c270a62fecc20762256ced06e1a8db9ccb74c /clippy_lints/src/large_stack_frames.rs | |
| parent | 2e907aa90c67d73fadc9be54c6609f618045c10c (diff) | |
| parent | 01a0a3666681b88c3cab5ffc440bdd74352093dd (diff) | |
Merge remote-tracking branch 'upstream/master' into rustup
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() { |
