We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7d591d commit 0b31525Copy full SHA for 0b31525
src/test/ui/runtime/out-of-stack.rs
@@ -6,7 +6,7 @@
6
// ignore-emscripten no processes
7
// ignore-sgx no processes
8
9
-#![feature(llvm_asm)]
+#![feature(core_intrinsics)]
10
#![feature(rustc_private)]
11
12
#[cfg(unix)]
@@ -16,11 +16,10 @@ use std::env;
16
use std::process::Command;
17
use std::thread;
18
19
-// lifted from the test module
20
// Inlining to avoid llvm turning the recursive functions into tail calls,
21
// which doesn't consume stack.
22
#[inline(always)]
23
-pub fn black_box<T>(dummy: T) { unsafe { llvm_asm!("" : : "r"(&dummy)) } }
+pub fn black_box<T>(dummy: T) { std::intrinsics::black_box(dummy); }
24
25
fn silent_recurse() {
26
let buf = [0u8; 1000];
0 commit comments