fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this function allocates a large amount of stack space 2 --> $DIR/large_stack_frames.rs:25:1 3 | 4LL | / fn many_small_arrays() { 5LL | | 6LL | | 7LL | | let x = [0u8; 500_000]; 8... | 9LL | | black_box((&x, &x2, &x3, &x4, &x5)); 10LL | | } 11 | |_^ 12 | 13 = note: allocating large amounts of stack space can overflow the stack 14 = note: `-D clippy::large-stack-frames` implied by `-D warnings` 15 = help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]` 16 17error: this function allocates a large amount of stack space 18 --> $DIR/large_stack_frames.rs:36:1 19 | 20LL | / fn large_return_value() -> ArrayDefault<1_000_000> { 21LL | | 22LL | | 23LL | | Default::default() 24LL | | } 25 | |_^ 26 | 27 = note: allocating large amounts of stack space can overflow the stack 28 29error: this function allocates a large amount of stack space 30 --> $DIR/large_stack_frames.rs:42:1 31 | 32LL | / fn large_fn_arg(x: ArrayDefault<1_000_000>) { 33LL | | 34LL | | 35LL | | black_box(&x); 36LL | | } 37 | |_^ 38 | 39 = note: allocating large amounts of stack space can overflow the stack 40 41error: aborting due to 3 previous errors 42