|
193 | 193 | //!
|
194 | 194 | //! A simple spinlock:
|
195 | 195 | //!
|
196 |
| -//! ``` |
| 196 | +//! ```ignore-wasm |
197 | 197 | //! use std::sync::Arc;
|
198 | 198 | //! use std::sync::atomic::{AtomicUsize, Ordering};
|
199 | 199 | //! use std::{hint, thread};
|
@@ -622,7 +622,7 @@ impl AtomicBool {
|
622 | 622 | ///
|
623 | 623 | /// # Examples
|
624 | 624 | ///
|
625 |
| - /// ``` |
| 625 | + /// ```ignore-wasm |
626 | 626 | /// #![feature(atomic_from_mut)]
|
627 | 627 | /// use std::sync::atomic::{AtomicBool, Ordering};
|
628 | 628 | ///
|
@@ -653,7 +653,7 @@ impl AtomicBool {
|
653 | 653 | ///
|
654 | 654 | /// # Examples
|
655 | 655 | ///
|
656 |
| - /// ``` |
| 656 | + /// ```rust,ignore-wasm |
657 | 657 | /// #![feature(atomic_from_mut)]
|
658 | 658 | /// use std::sync::atomic::{AtomicBool, Ordering};
|
659 | 659 | ///
|
@@ -1548,7 +1548,7 @@ impl<T> AtomicPtr<T> {
|
1548 | 1548 | ///
|
1549 | 1549 | /// # Examples
|
1550 | 1550 | ///
|
1551 |
| - /// ``` |
| 1551 | + /// ```ignore-wasm |
1552 | 1552 | /// #![feature(atomic_from_mut)]
|
1553 | 1553 | /// use std::ptr::null_mut;
|
1554 | 1554 | /// use std::sync::atomic::{AtomicPtr, Ordering};
|
@@ -1585,7 +1585,7 @@ impl<T> AtomicPtr<T> {
|
1585 | 1585 | ///
|
1586 | 1586 | /// # Examples
|
1587 | 1587 | ///
|
1588 |
| - /// ``` |
| 1588 | + /// ```ignore-wasm |
1589 | 1589 | /// #![feature(atomic_from_mut)]
|
1590 | 1590 | /// use std::ptr::null_mut;
|
1591 | 1591 | /// use std::sync::atomic::{AtomicPtr, Ordering};
|
@@ -2692,7 +2692,7 @@ macro_rules! atomic_int {
|
2692 | 2692 | ///
|
2693 | 2693 | /// # Examples
|
2694 | 2694 | ///
|
2695 |
| - /// ``` |
| 2695 | + /// ```ignore-wasm |
2696 | 2696 | /// #![feature(atomic_from_mut)]
|
2697 | 2697 | #[doc = concat!($extra_feature, "use std::sync::atomic::{", stringify!($atomic_type), ", Ordering};")]
|
2698 | 2698 | ///
|
@@ -2725,7 +2725,7 @@ macro_rules! atomic_int {
|
2725 | 2725 | ///
|
2726 | 2726 | /// # Examples
|
2727 | 2727 | ///
|
2728 |
| - /// ``` |
| 2728 | + /// ```ignore-wasm |
2729 | 2729 | /// #![feature(atomic_from_mut)]
|
2730 | 2730 | #[doc = concat!($extra_feature, "use std::sync::atomic::{", stringify!($atomic_type), ", Ordering};")]
|
2731 | 2731 | ///
|
|
0 commit comments