about summary refs log tree commit diff
path: root/tests/ui/runtime
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-04-17 18:47:28 -0400
committerBen Kimock <kimockb@gmail.com>2024-05-20 11:13:10 -0400
commit8d3bc559048e47de32e32a562fe5bbea0b38f4e6 (patch)
tree03ffb3889cb53e439bdfdeb8f154d7a8b2f1ea51 /tests/ui/runtime
parent44d679b9021f03a79133021b94e6d23e9b55b3ab (diff)
downloadrust-8d3bc559048e47de32e32a562fe5bbea0b38f4e6.tar.gz
rust-8d3bc559048e47de32e32a562fe5bbea0b38f4e6.zip
Fix up a few more tests
Diffstat (limited to 'tests/ui/runtime')
-rw-r--r--tests/ui/runtime/out-of-stack.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/ui/runtime/out-of-stack.rs b/tests/ui/runtime/out-of-stack.rs
index ab2b50b293c..a62398df8b8 100644
--- a/tests/ui/runtime/out-of-stack.rs
+++ b/tests/ui/runtime/out-of-stack.rs
@@ -8,21 +8,16 @@
 //@ ignore-fuchsia must translate zircon signal to SIGABRT, FIXME (#58590)
 //@ ignore-nto no stack overflow handler used (no alternate stack available)
 
-#![feature(core_intrinsics)]
 #![feature(rustc_private)]
 
 #[cfg(unix)]
 extern crate libc;
 
 use std::env;
+use std::hint::black_box;
 use std::process::Command;
 use std::thread;
 
-// Inlining to avoid llvm turning the recursive functions into tail calls,
-// which doesn't consume stack.
-#[inline(always)]
-pub fn black_box<T>(dummy: T) { std::intrinsics::black_box(dummy); }
-
 fn silent_recurse() {
     let buf = [0u8; 1000];
     black_box(buf);