@@ -61,16 +61,18 @@ extern "rust-intrinsic" {
61
61
/// `std::sync::atomic` types via the `compare_exchange` method by passing
62
62
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
63
63
/// as both the `success` and `failure` parameters. For example,
64
- /// [`AtomicBool::compare_exchange`]
65
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
64
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
65
+ ///
66
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
66
67
pub fn atomic_cxchg < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
67
68
/// Stores a value if the current value is the same as the `old` value.
68
69
/// The stabilized version of this intrinsic is available on the
69
70
/// `std::sync::atomic` types via the `compare_exchange` method by passing
70
71
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
71
72
/// as both the `success` and `failure` parameters. For example,
72
- /// [`AtomicBool::compare_exchange`]
73
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
73
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
74
+ ///
75
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
74
76
pub fn atomic_cxchg_acq < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
75
77
/// Stores a value if the current value is the same as the `old` value.
76
78
/// The stabilized version of this intrinsic is available on the
@@ -79,8 +81,9 @@ extern "rust-intrinsic" {
79
81
/// as the `success` and
80
82
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
81
83
/// as the `failure` parameters. For example,
82
- /// [`AtomicBool::compare_exchange`]
83
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
84
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
85
+ ///
86
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
84
87
pub fn atomic_cxchg_rel < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
85
88
/// Stores a value if the current value is the same as the `old` value.
86
89
/// The stabilized version of this intrinsic is available on the
@@ -89,16 +92,18 @@ extern "rust-intrinsic" {
89
92
/// as the `success` and
90
93
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
91
94
/// as the `failure` parameters. For example,
92
- /// [`AtomicBool::compare_exchange`]
93
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
95
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
96
+ ///
97
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
94
98
pub fn atomic_cxchg_acqrel < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
95
99
/// Stores a value if the current value is the same as the `old` value.
96
100
/// The stabilized version of this intrinsic is available on the
97
101
/// `std::sync::atomic` types via the `compare_exchange` method by passing
98
102
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
99
103
/// as both the `success` and `failure` parameters. For example,
100
- /// [`AtomicBool::compare_exchange`]
101
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
104
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
105
+ ///
106
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
102
107
pub fn atomic_cxchg_relaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
103
108
/// Stores a value if the current value is the same as the `old` value.
104
109
/// The stabilized version of this intrinsic is available on the
@@ -107,8 +112,9 @@ extern "rust-intrinsic" {
107
112
/// as the `success` and
108
113
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
109
114
/// as the `failure` parameters. For example,
110
- /// [`AtomicBool::compare_exchange`]
111
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
115
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
116
+ ///
117
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
112
118
pub fn atomic_cxchg_failrelaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
113
119
/// Stores a value if the current value is the same as the `old` value.
114
120
/// The stabilized version of this intrinsic is available on the
@@ -117,8 +123,9 @@ extern "rust-intrinsic" {
117
123
/// as the `success` and
118
124
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
119
125
/// as the `failure` parameters. For example,
120
- /// [`AtomicBool::compare_exchange`]
121
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
126
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
127
+ ///
128
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
122
129
pub fn atomic_cxchg_failacq < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
123
130
/// Stores a value if the current value is the same as the `old` value.
124
131
/// The stabilized version of this intrinsic is available on the
@@ -127,8 +134,9 @@ extern "rust-intrinsic" {
127
134
/// as the `success` and
128
135
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
129
136
/// as the `failure` parameters. For example,
130
- /// [`AtomicBool::compare_exchange`]
131
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
137
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
138
+ ///
139
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
132
140
pub fn atomic_cxchg_acq_failrelaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
133
141
/// Stores a value if the current value is the same as the `old` value.
134
142
/// The stabilized version of this intrinsic is available on the
@@ -137,25 +145,28 @@ extern "rust-intrinsic" {
137
145
/// as the `success` and
138
146
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
139
147
/// as the `failure` parameters. For example,
140
- /// [`AtomicBool::compare_exchange`]
141
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
148
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
149
+ ///
150
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
142
151
pub fn atomic_cxchg_acqrel_failrelaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
143
152
144
153
/// Stores a value if the current value is the same as the `old` value.
145
154
/// The stabilized version of this intrinsic is available on the
146
155
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
147
156
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
148
157
/// as both the `success` and `failure` parameters. For example,
149
- /// [`AtomicBool::compare_exchange_weak`]
150
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
158
+ /// [`AtomicBool::compare_exchange_weak`][cew].
159
+ ///
160
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
151
161
pub fn atomic_cxchgweak < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
152
162
/// Stores a value if the current value is the same as the `old` value.
153
163
/// The stabilized version of this intrinsic is available on the
154
164
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
155
165
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
156
166
/// as both the `success` and `failure` parameters. For example,
157
- /// [`AtomicBool::compare_exchange_weak`]
158
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
167
+ /// [`AtomicBool::compare_exchange_weak`][cew].
168
+ ///
169
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
159
170
pub fn atomic_cxchgweak_acq < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
160
171
/// Stores a value if the current value is the same as the `old` value.
161
172
/// The stabilized version of this intrinsic is available on the
@@ -164,8 +175,9 @@ extern "rust-intrinsic" {
164
175
/// as the `success` and
165
176
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
166
177
/// as the `failure` parameters. For example,
167
- /// [`AtomicBool::compare_exchange_weak`]
168
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
178
+ /// [`AtomicBool::compare_exchange_weak`][cew].
179
+ ///
180
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
169
181
pub fn atomic_cxchgweak_rel < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
170
182
/// Stores a value if the current value is the same as the `old` value.
171
183
/// The stabilized version of this intrinsic is available on the
@@ -174,16 +186,18 @@ extern "rust-intrinsic" {
174
186
/// as the `success` and
175
187
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
176
188
/// as the `failure` parameters. For example,
177
- /// [`AtomicBool::compare_exchange_weak`]
178
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
189
+ /// [`AtomicBool::compare_exchange_weak`][cew].
190
+ ///
191
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
179
192
pub fn atomic_cxchgweak_acqrel < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
180
193
/// Stores a value if the current value is the same as the `old` value.
181
194
/// The stabilized version of this intrinsic is available on the
182
195
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
183
196
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
184
197
/// as both the `success` and `failure` parameters. For example,
185
- /// [`AtomicBool::compare_exchange_weak`]
186
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
198
+ /// [`AtomicBool::compare_exchange_weak`][cew].
199
+ ///
200
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
187
201
pub fn atomic_cxchgweak_relaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
188
202
/// Stores a value if the current value is the same as the `old` value.
189
203
/// The stabilized version of this intrinsic is available on the
@@ -192,8 +206,9 @@ extern "rust-intrinsic" {
192
206
/// as the `success` and
193
207
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
194
208
/// as the `failure` parameters. For example,
195
- /// [`AtomicBool::compare_exchange_weak`]
196
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
209
+ /// [`AtomicBool::compare_exchange_weak`][cew].
210
+ ///
211
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
197
212
pub fn atomic_cxchgweak_failrelaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
198
213
/// Stores a value if the current value is the same as the `old` value.
199
214
/// The stabilized version of this intrinsic is available on the
@@ -202,8 +217,9 @@ extern "rust-intrinsic" {
202
217
/// as the `success` and
203
218
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
204
219
/// as the `failure` parameters. For example,
205
- /// [`AtomicBool::compare_exchange_weak`]
206
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
220
+ /// [`AtomicBool::compare_exchange_weak`][cew].
221
+ ///
222
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
207
223
pub fn atomic_cxchgweak_failacq < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
208
224
/// Stores a value if the current value is the same as the `old` value.
209
225
/// The stabilized version of this intrinsic is available on the
@@ -212,8 +228,9 @@ extern "rust-intrinsic" {
212
228
/// as the `success` and
213
229
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
214
230
/// as the `failure` parameters. For example,
215
- /// [`AtomicBool::compare_exchange_weak`]
216
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
231
+ /// [`AtomicBool::compare_exchange_weak`][cew].
232
+ ///
233
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
217
234
pub fn atomic_cxchgweak_acq_failrelaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
218
235
/// Stores a value if the current value is the same as the `old` value.
219
236
/// The stabilized version of this intrinsic is available on the
@@ -222,8 +239,9 @@ extern "rust-intrinsic" {
222
239
/// as the `success` and
223
240
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
224
241
/// as the `failure` parameters. For example,
225
- /// [`AtomicBool::compare_exchange_weak`]
226
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
242
+ /// [`AtomicBool::compare_exchange_weak`][cew].
243
+ ///
244
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
227
245
pub fn atomic_cxchgweak_acqrel_failrelaxed < T > ( dst : * mut T , old : T , src : T ) -> ( T , bool ) ;
228
246
229
247
/// Loads the current value of the pointer.
0 commit comments