summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/large_stack_frames.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /src/tools/clippy/tests/ui/large_stack_frames.stderr
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/large_stack_frames.stderr')
-rw-r--r--src/tools/clippy/tests/ui/large_stack_frames.stderr13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/tools/clippy/tests/ui/large_stack_frames.stderr b/src/tools/clippy/tests/ui/large_stack_frames.stderr
index d57df8596..12a458db8 100644
--- a/src/tools/clippy/tests/ui/large_stack_frames.stderr
+++ b/src/tools/clippy/tests/ui/large_stack_frames.stderr
@@ -2,9 +2,9 @@ error: this function allocates a large amount of stack space
--> $DIR/large_stack_frames.rs:25:1
|
LL | / fn many_small_arrays() {
+LL | |
+LL | |
LL | | let x = [0u8; 500_000];
-LL | | let x2 = [0u8; 500_000];
-LL | | let x3 = [0u8; 500_000];
... |
LL | | black_box((&x, &x2, &x3, &x4, &x5));
LL | | }
@@ -12,11 +12,14 @@ LL | | }
|
= note: allocating large amounts of stack space can overflow the stack
= note: `-D clippy::large-stack-frames` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
error: this function allocates a large amount of stack space
- --> $DIR/large_stack_frames.rs:34:1
+ --> $DIR/large_stack_frames.rs:36:1
|
LL | / fn large_return_value() -> ArrayDefault<1_000_000> {
+LL | |
+LL | |
LL | | Default::default()
LL | | }
| |_^
@@ -24,9 +27,11 @@ LL | | }
= note: allocating large amounts of stack space can overflow the stack
error: this function allocates a large amount of stack space
- --> $DIR/large_stack_frames.rs:38:1
+ --> $DIR/large_stack_frames.rs:42:1
|
LL | / fn large_fn_arg(x: ArrayDefault<1_000_000>) {
+LL | |
+LL | |
LL | | black_box(&x);
LL | | }
| |_^