diff options
| author | est31 <MTest31@outlook.com> | 2017-10-05 05:04:40 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-10-05 05:04:40 +0200 |
| commit | 329b901b50639232ca59fe839beda89cecbe1c85 (patch) | |
| tree | c48ab30c3ea85ec646efd3226831ff528914555c /src/libtest/lib.rs | |
| parent | aad1c998c7a08dd06719845dd5b3b962dfcb0be7 (diff) | |
| download | rust-329b901b50639232ca59fe839beda89cecbe1c85.tar.gz rust-329b901b50639232ca59fe839beda89cecbe1c85.zip | |
Remove nacl from libtest
Diffstat (limited to 'src/libtest/lib.rs')
| -rw-r--r-- | src/libtest/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 642eb285564..e8a1242c814 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -1554,16 +1554,14 @@ impl MetricMap { /// elimination. /// /// This function is a no-op, and does not even read from `dummy`. -#[cfg(not(any(all(target_os = "nacl", target_arch = "le32"), - target_arch = "asmjs", target_arch = "wasm32")))] +#[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] pub fn black_box<T>(dummy: T) -> T { // we need to "use" the argument in some way LLVM can't // introspect. unsafe { asm!("" : : "r"(&dummy)) } dummy } -#[cfg(any(all(target_os = "nacl", target_arch = "le32"), - target_arch = "asmjs", target_arch = "wasm32"))] +#[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] #[inline(never)] pub fn black_box<T>(dummy: T) -> T { dummy |
