diff --git a/tests/ui/codegen/issue-83060-large-stack-size.64bit.stderr b/tests/ui/codegen/issue-83060-large-stack-size.64bit.stderr deleted file mode 100644 index 287ccd9a9b7a..000000000000 --- a/tests/ui/codegen/issue-83060-large-stack-size.64bit.stderr +++ /dev/null @@ -1,4 +0,0 @@ -warning: Dangerous stack allocation of size: 1 GiB exceeds most architecture limits - -warning: 1 warning emitted - diff --git a/tests/ui/codegen/issue-83060-large-stack-size.rs b/tests/ui/codegen/issue-83060-large-stack-size.rs index b605e371b794..17e9ee153944 100644 --- a/tests/ui/codegen/issue-83060-large-stack-size.rs +++ b/tests/ui/codegen/issue-83060-large-stack-size.rs @@ -1,4 +1,3 @@ -// stderr-per-bitwidth // build-pass fn func() { const CAP: usize = std::u32::MAX as usize; @@ -8,12 +7,8 @@ fn func() { } fn main() { - let mut n = 5; - if cfg!(target_pointer_width = "32") { - n = 3; - } std::thread::Builder::new() - .stack_size(n * 1024 * 1024 * 1024) + .stack_size(3 * 1024 * 1024 * 1024) .spawn(func) .unwrap() .join()