From 3305a06edf631b8bc4660a071c719112c2b0086a Mon Sep 17 00:00:00 2001 From: Swapna Iyer Date: Fri, 12 Jan 2024 22:50:16 -0800 Subject: [PATCH] Remove bitwidth specific code --- tests/ui/codegen/issue-83060-large-stack-size.64bit.stderr | 4 ---- tests/ui/codegen/issue-83060-large-stack-size.rs | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 tests/ui/codegen/issue-83060-large-stack-size.64bit.stderr 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()