@@ -851,27 +851,51 @@ extern "rust-intrinsic" {
851851 /// compiler, but no instructions will be emitted for it. This is
852852 /// appropriate for operations on the same thread that may be preempted,
853853 /// such as when interacting with signal handlers.
854+ ///
855+ /// The stabilized version of this intrinsic is available in
856+ /// [`std::sync::atomic::compiler_fence`](../../std/sync/atomic/fn.compiler_fence.html)
857+ /// by passing
858+ /// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
859+ /// as the `order`.
854860 pub fn atomic_singlethreadfence ( ) ;
855861 /// A compiler-only memory barrier.
856862 ///
857863 /// Memory accesses will never be reordered across this barrier by the
858864 /// compiler, but no instructions will be emitted for it. This is
859865 /// appropriate for operations on the same thread that may be preempted,
860866 /// such as when interacting with signal handlers.
867+ ///
868+ /// The stabilized version of this intrinsic is available in
869+ /// [`std::sync::atomic::compiler_fence`](../../std/sync/atomic/fn.compiler_fence.html)
870+ /// by passing
871+ /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
872+ /// as the `order`.
861873 pub fn atomic_singlethreadfence_acq ( ) ;
862874 /// A compiler-only memory barrier.
863875 ///
864876 /// Memory accesses will never be reordered across this barrier by the
865877 /// compiler, but no instructions will be emitted for it. This is
866878 /// appropriate for operations on the same thread that may be preempted,
867879 /// such as when interacting with signal handlers.
880+ ///
881+ /// The stabilized version of this intrinsic is available in
882+ /// [`std::sync::atomic::compiler_fence`](../../std/sync/atomic/fn.compiler_fence.html)
883+ /// by passing
884+ /// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
885+ /// as the `order`.
868886 pub fn atomic_singlethreadfence_rel ( ) ;
869887 /// A compiler-only memory barrier.
870888 ///
871889 /// Memory accesses will never be reordered across this barrier by the
872890 /// compiler, but no instructions will be emitted for it. This is
873891 /// appropriate for operations on the same thread that may be preempted,
874892 /// such as when interacting with signal handlers.
893+ ///
894+ /// The stabilized version of this intrinsic is available in
895+ /// [`std::sync::atomic::compiler_fence`](../../std/sync/atomic/fn.compiler_fence.html)
896+ /// by passing
897+ /// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
898+ /// as the `order`.
875899 pub fn atomic_singlethreadfence_acqrel ( ) ;
876900
877901 /// Magic intrinsic that derives its meaning from attributes
0 commit comments