Skip to content

Commit

Permalink
Remove bitwidth specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
iSwapna committed Jan 13, 2024
1 parent a76815a commit 3305a06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions tests/ui/codegen/issue-83060-large-stack-size.64bit.stderr

This file was deleted.

7 changes: 1 addition & 6 deletions tests/ui/codegen/issue-83060-large-stack-size.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// stderr-per-bitwidth
// build-pass
fn func() {
const CAP: usize = std::u32::MAX as usize;
Expand All @@ -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()
Expand Down

0 comments on commit 3305a06

Please sign in to comment.