Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: avoid infinite loop in out-of-stack.rs
This fixes rust-lang#13238. It avoids an infinite loop when compiling the tests with `-g`. Without this change, the debuginfo on `black_box` prevents the method from being inlined, which allows llvm to convert `silent_recurse` into a tail-call. This then loops forever instead of consuming all the stack like it is supposed to. This patch forces inlining `black_box`, which triggers the right error.
- Loading branch information