Skip to content

Commit 7bfdb60

Browse files
Comment on needed RAM in huge-stacks.rs
1 parent 7dc2c16 commit 7bfdb60

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/ui/codegen/huge-stacks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//@ min-llvm-version: 22
66

77
// Regression test for https://github.com/rust-lang/rust/issues/83060
8+
// Verifies a program is not miscompiled if it includes a 4GB array on the stack
89

910
fn func() {
1011
const CAP: usize = std::u32::MAX as usize;
@@ -17,7 +18,7 @@ fn main() {
1718
std::thread::Builder::new()
1819
.stack_size(5 * 1024 * 1024 * 1024)
1920
.spawn(func)
20-
.unwrap()
21+
.expect("huge-stacks.rs requires 5GB RAM to run")
2122
.join()
2223
.unwrap();
2324
}

0 commit comments

Comments
 (0)