Skip to content

Commit 6e80db9

Browse files
committed
use a smaller number in test that fits in usize for 32 bit
1 parent 6ce61d5 commit 6e80db9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stack-size-threshold = 4294967296
1+
stack-size-threshold = 1000

tests/ui-toml/large_stack_frames/large_stack_frames.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ fn create_array<const N: usize>() -> [u8; N] {
77
}
88

99
fn f() {
10-
let _x = create_array::<4294967296>();
10+
let _x = create_array::<1000>();
1111
}
1212
fn f2() {
1313
//~^ ERROR: this function allocates a large amount of stack space
14-
let _x = create_array::<4294967297>();
14+
let _x = create_array::<1001>();
1515
}
1616

1717
fn main() {}

tests/ui-toml/large_stack_frames/large_stack_frames.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error: this function allocates a large amount of stack space
33
|
44
LL | / fn f2() {
55
LL | |
6-
LL | | let _x = create_array::<4294967297>();
6+
LL | | let _x = create_array::<1001>();
77
LL | | }
88
| |_^
99
|

0 commit comments

Comments
 (0)