We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7accc07 commit 0e0188cCopy full SHA for 0e0188c
core/src/slice/mod.rs
@@ -96,6 +96,7 @@ impl<T> [T] {
96
/// assert_eq!(a.len(), 3);
97
/// ```
98
#[doc(alias = "length")]
99
+ #[cfg_attr(not(bootstrap), lang = "slice_len_fn")]
100
#[stable(feature = "rust1", since = "1.0.0")]
101
#[rustc_const_stable(feature = "const_slice_len", since = "1.39.0")]
102
#[inline]
std/src/thread/local/tests.rs
@@ -297,7 +297,7 @@ fn join_orders_after_tls_destructors() {
297
.unwrap();
298
299
loop {
300
- match SYNC_STATE.compare_exchange_weak(
+ match SYNC_STATE.compare_exchange(
301
THREAD1_WAITING,
302
MAIN_THREAD_RENDEZVOUS,
303
Ordering::SeqCst,
0 commit comments