Skip to content

Commit

Permalink
increase slack for stack size test
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 17, 2020
1 parent bec5d37 commit 7a6b451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/issues/issue-40883.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ fn verify_stack_usage(before_ptr: *mut Vec<Big>) {
let stack_usage = isize::abs(
(&mut stack_var as *mut _ as isize) -
(before_ptr as isize)) as usize;
// give space for 2 copies of `Big` + 128 "misc" bytes.
if stack_usage > mem::size_of::<Big>() * 2 + 128 {
// give space for 2 copies of `Big` + 256 "misc" bytes.
if stack_usage > mem::size_of::<Big>() * 2 + 256 {
panic!("used {} bytes of stack, but `struct Big` is only {} bytes",
stack_usage, mem::size_of::<Big>());
}
Expand Down

0 comments on commit 7a6b451

Please sign in to comment.