Skip to content

Commit d1838f6

Browse files
committed
Use intra-doc links for compare_exchange and compare_exchange_weak
1 parent 751e343 commit d1838f6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

library/core/src/intrinsics.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extern "rust-intrinsic" {
7676
/// as both the `success` and `failure` parameters. For example,
7777
/// [`AtomicBool::compare_exchange`][compare_exchange].
7878
///
79-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
79+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
8080
pub fn atomic_cxchg<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
8181
/// Stores a value if the current value is the same as the `old` value.
8282
///
@@ -86,7 +86,7 @@ extern "rust-intrinsic" {
8686
/// as both the `success` and `failure` parameters. For example,
8787
/// [`AtomicBool::compare_exchange`][compare_exchange].
8888
///
89-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
89+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
9090
pub fn atomic_cxchg_acq<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
9191
/// Stores a value if the current value is the same as the `old` value.
9292
///
@@ -98,7 +98,7 @@ extern "rust-intrinsic" {
9898
/// as the `failure` parameters. For example,
9999
/// [`AtomicBool::compare_exchange`][compare_exchange].
100100
///
101-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
101+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
102102
pub fn atomic_cxchg_rel<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
103103
/// Stores a value if the current value is the same as the `old` value.
104104
///
@@ -110,7 +110,7 @@ extern "rust-intrinsic" {
110110
/// as the `failure` parameters. For example,
111111
/// [`AtomicBool::compare_exchange`][compare_exchange].
112112
///
113-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
113+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
114114
pub fn atomic_cxchg_acqrel<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
115115
/// Stores a value if the current value is the same as the `old` value.
116116
///
@@ -120,7 +120,7 @@ extern "rust-intrinsic" {
120120
/// as both the `success` and `failure` parameters. For example,
121121
/// [`AtomicBool::compare_exchange`][compare_exchange].
122122
///
123-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
123+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
124124
pub fn atomic_cxchg_relaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
125125
/// Stores a value if the current value is the same as the `old` value.
126126
///
@@ -132,7 +132,7 @@ extern "rust-intrinsic" {
132132
/// as the `failure` parameters. For example,
133133
/// [`AtomicBool::compare_exchange`][compare_exchange].
134134
///
135-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
135+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
136136
pub fn atomic_cxchg_failrelaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
137137
/// Stores a value if the current value is the same as the `old` value.
138138
///
@@ -144,7 +144,7 @@ extern "rust-intrinsic" {
144144
/// as the `failure` parameters. For example,
145145
/// [`AtomicBool::compare_exchange`][compare_exchange].
146146
///
147-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
147+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
148148
pub fn atomic_cxchg_failacq<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
149149
/// Stores a value if the current value is the same as the `old` value.
150150
///
@@ -156,7 +156,7 @@ extern "rust-intrinsic" {
156156
/// as the `failure` parameters. For example,
157157
/// [`AtomicBool::compare_exchange`][compare_exchange].
158158
///
159-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
159+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
160160
pub fn atomic_cxchg_acq_failrelaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
161161
/// Stores a value if the current value is the same as the `old` value.
162162
///
@@ -168,7 +168,7 @@ extern "rust-intrinsic" {
168168
/// as the `failure` parameters. For example,
169169
/// [`AtomicBool::compare_exchange`][compare_exchange].
170170
///
171-
/// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
171+
/// [compare_exchange]: crate::sync::atomic::AtomicBool::compare_exchange
172172
pub fn atomic_cxchg_acqrel_failrelaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
173173

174174
/// Stores a value if the current value is the same as the `old` value.
@@ -179,7 +179,7 @@ extern "rust-intrinsic" {
179179
/// as both the `success` and `failure` parameters. For example,
180180
/// [`AtomicBool::compare_exchange_weak`][cew].
181181
///
182-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
182+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
183183
pub fn atomic_cxchgweak<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
184184
/// Stores a value if the current value is the same as the `old` value.
185185
///
@@ -189,7 +189,7 @@ extern "rust-intrinsic" {
189189
/// as both the `success` and `failure` parameters. For example,
190190
/// [`AtomicBool::compare_exchange_weak`][cew].
191191
///
192-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
192+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
193193
pub fn atomic_cxchgweak_acq<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
194194
/// Stores a value if the current value is the same as the `old` value.
195195
///
@@ -201,7 +201,7 @@ extern "rust-intrinsic" {
201201
/// as the `failure` parameters. For example,
202202
/// [`AtomicBool::compare_exchange_weak`][cew].
203203
///
204-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
204+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
205205
pub fn atomic_cxchgweak_rel<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
206206
/// Stores a value if the current value is the same as the `old` value.
207207
///
@@ -213,7 +213,7 @@ extern "rust-intrinsic" {
213213
/// as the `failure` parameters. For example,
214214
/// [`AtomicBool::compare_exchange_weak`][cew].
215215
///
216-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
216+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
217217
pub fn atomic_cxchgweak_acqrel<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
218218
/// Stores a value if the current value is the same as the `old` value.
219219
///
@@ -223,7 +223,7 @@ extern "rust-intrinsic" {
223223
/// as both the `success` and `failure` parameters. For example,
224224
/// [`AtomicBool::compare_exchange_weak`][cew].
225225
///
226-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
226+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
227227
pub fn atomic_cxchgweak_relaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
228228
/// Stores a value if the current value is the same as the `old` value.
229229
///
@@ -235,7 +235,7 @@ extern "rust-intrinsic" {
235235
/// as the `failure` parameters. For example,
236236
/// [`AtomicBool::compare_exchange_weak`][cew].
237237
///
238-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
238+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
239239
pub fn atomic_cxchgweak_failrelaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
240240
/// Stores a value if the current value is the same as the `old` value.
241241
///
@@ -247,7 +247,7 @@ extern "rust-intrinsic" {
247247
/// as the `failure` parameters. For example,
248248
/// [`AtomicBool::compare_exchange_weak`][cew].
249249
///
250-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
250+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
251251
pub fn atomic_cxchgweak_failacq<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
252252
/// Stores a value if the current value is the same as the `old` value.
253253
///
@@ -259,7 +259,7 @@ extern "rust-intrinsic" {
259259
/// as the `failure` parameters. For example,
260260
/// [`AtomicBool::compare_exchange_weak`][cew].
261261
///
262-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
262+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
263263
pub fn atomic_cxchgweak_acq_failrelaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
264264
/// Stores a value if the current value is the same as the `old` value.
265265
///
@@ -271,7 +271,7 @@ extern "rust-intrinsic" {
271271
/// as the `failure` parameters. For example,
272272
/// [`AtomicBool::compare_exchange_weak`][cew].
273273
///
274-
/// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
274+
/// [cew]: crate::sync::atomic::AtomicBool::compare_exchange_weak
275275
pub fn atomic_cxchgweak_acqrel_failrelaxed<T: Copy>(dst: *mut T, old: T, src: T) -> (T, bool);
276276

277277
/// Loads the current value of the pointer.

0 commit comments

Comments
 (0)