about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-03-25 11:42:21 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-03-25 11:44:06 +0100
commitf2443831e97279d94902997d2c012d2e92d5d996 (patch)
tree5bd503ad090506e3adcbecc81c23ffbc49840e0f
parentf5d6b3af6966470f7f3beac16ec2bd77b04d8905 (diff)
downloadrust-f2443831e97279d94902997d2c012d2e92d5d996.tar.gz
rust-f2443831e97279d94902997d2c012d2e92d5d996.zip
Remove dupplicated config
-rw-r--r--src/libcore/hint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/hint.rs b/src/libcore/hint.rs
index d6ddab0d8f5..75d64bbe0fb 100644
--- a/src/libcore/hint.rs
+++ b/src/libcore/hint.rs
@@ -97,7 +97,6 @@ pub fn spin_loop() {
 /// elimination.
 ///
 /// This function is a no-op, and does not even read from `dummy`.
-#[cfg_attr(any(target_arch = "asmjs", target_arch = "wasm32"), inline(never))]
 #[unstable(feature = "test", issue = "27812")]
 pub fn black_box<T>(dummy: T) -> T {
     #[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] {
@@ -107,6 +106,7 @@ pub fn black_box<T>(dummy: T) -> T {
         dummy
     }
     #[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] {
-        dummy
+        #[inline(never)] fn black_box_(x: T) -> T { x }
+        black_box_(dummy)
     }
 }