]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41066 - steveklabnik:fix-links, r=frewsxcv
authorCorey Farwell <coreyf@rwell.org>
Wed, 5 Apr 2017 16:44:38 +0000 (12:44 -0400)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 16:44:38 +0000 (12:44 -0400)
Fix links

part of https://github.com/rust-lang/rust/issues/40912

[]\n() is not actually a link.

r? @frewsxcv @GuillaumeGomez

1  2 
src/libcore/intrinsics.rs

index d8db450fb1c1ff24619f951a04a6ed22aa5f5c8d,0806548b5aa0557be4b8175c3b246cd962272f6b..e0a4707ff665f58c0bdedbb8fed6f6e29bc897be
@@@ -61,16 -61,18 +61,18 @@@ extern "rust-intrinsic" 
      /// `std::sync::atomic` types via the `compare_exchange` method by passing
      /// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
      /// as both the `success` and `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// `std::sync::atomic` types via the `compare_exchange` method by passing
      /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
      /// as both the `success` and `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_acq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
@@@ -79,8 -81,9 +81,9 @@@
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_rel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_acqrel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// `std::sync::atomic` types via the `compare_exchange` method by passing
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as both the `success` and `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_relaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_failacq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_acq_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+     /// [`AtomicBool::compare_exchange`][compare_exchange].
+     ///
+     /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
      pub fn atomic_cxchg_acqrel_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
  
      /// Stores a value if the current value is the same as the `old` value.
      /// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
      /// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
      /// as both the `success` and `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
      /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
      /// as both the `success` and `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_acq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_rel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_acqrel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as both the `success` and `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_relaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_failacq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_acq_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
      /// Stores a value if the current value is the same as the `old` value.
      /// The stabilized version of this intrinsic is available on the
      /// as the `success` and
      /// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
      /// as the `failure` parameters. For example,
-     /// [`AtomicBool::compare_exchange_weak`]
-     /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+     /// [`AtomicBool::compare_exchange_weak`][cew].
+     ///
+     /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
      pub fn atomic_cxchgweak_acqrel_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
  
      /// Loads the current value of the pointer.
@@@ -1253,17 -1271,17 +1271,17 @@@ extern "rust-intrinsic" 
      #[cfg(not(stage0))]
      pub fn unchecked_shr<T>(x: T, y: T) -> T;
  
 -    /// Returns (a + b) mod 2^N, where N is the width of T in bits.
 +    /// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
      /// The stabilized versions of this intrinsic are available on the integer
      /// primitives via the `wrapping_add` method. For example,
      /// [`std::u32::wrapping_add`](../../std/primitive.u32.html#method.wrapping_add)
      pub fn overflowing_add<T>(a: T, b: T) -> T;
 -    /// Returns (a - b) mod 2^N, where N is the width of T in bits.
 +    /// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
      /// The stabilized versions of this intrinsic are available on the integer
      /// primitives via the `wrapping_sub` method. For example,
      /// [`std::u32::wrapping_sub`](../../std/primitive.u32.html#method.wrapping_sub)
      pub fn overflowing_sub<T>(a: T, b: T) -> T;
 -    /// Returns (a * b) mod 2^N, where N is the width of T in bits.
 +    /// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
      /// The stabilized versions of this intrinsic are available on the integer
      /// primitives via the `wrapping_mul` method. For example,
      /// [`std::u32::wrapping_mul`](../../std/primitive.u32.html#method.wrapping_mul)