Remove dupplicated config
This commit is contained in:
parent
f5d6b3af69
commit
f2443831e9
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,6 @@ pub fn spin_loop() {
|
||||||
/// elimination.
|
/// elimination.
|
||||||
///
|
///
|
||||||
/// This function is a no-op, and does not even read from `dummy`.
|
/// 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")]
|
#[unstable(feature = "test", issue = "27812")]
|
||||||
pub fn black_box<T>(dummy: T) -> T {
|
pub fn black_box<T>(dummy: T) -> T {
|
||||||
#[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] {
|
#[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] {
|
||||||
|
@ -107,6 +106,7 @@ pub fn black_box<T>(dummy: T) -> T {
|
||||||
dummy
|
dummy
|
||||||
}
|
}
|
||||||
#[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] {
|
#[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] {
|
||||||
dummy
|
#[inline(never)] fn black_box_(x: T) -> T { x }
|
||||||
|
black_box_(dummy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue