Skip to content

Commit

Permalink
Remove dupplicated config
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Mar 25, 2019
1 parent f5d6b3a commit f244383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))] {
Expand All @@ -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)
}
}

0 comments on commit f244383

Please sign in to comment.