|
5 | 5 | #![deny(missing_docs, warnings)] |
6 | 6 | // We aim at older rust too, one without dyn |
7 | 7 | #![allow(unknown_lints, bare_trait_objects, renamed_and_removed_lints)] |
8 | | -#![cfg_attr(feature = "unstable-weak", feature(weak_into_raw))] |
9 | 8 |
|
10 | 9 | //! Making [`Arc`][Arc] itself atomic |
11 | 10 | //! |
|
221 | 220 | //! |
222 | 221 | //! # Features |
223 | 222 | //! |
224 | | -//! The `unstable-weak` feature adds the ability to use arc-swap with the [Weak] pointer too, |
225 | | -//! through the [ArcSwapWeak] type. This requires the nightly Rust compiler. Also, the interface |
226 | | -//! and support **is not** part of API stability guarantees and may be arbitrarily changed or |
227 | | -//! removed in future releases (it is mostly waiting for the `weak_into_raw` nightly feature to |
228 | | -//! stabilize before stabilizing it in this crate). |
| 223 | +//! The `weak` feature adds the ability to use arc-swap with the [Weak] pointer too, |
| 224 | +//! through the [ArcSwapWeak] type. The needed std support is stabilized in rust version 1.45 (as |
| 225 | +//! of now in beta). |
229 | 226 | //! |
230 | 227 | //! # Internal details |
231 | 228 | //! |
@@ -276,7 +273,7 @@ mod compile_fail_tests; |
276 | 273 | mod debt; |
277 | 274 | pub mod gen_lock; |
278 | 275 | mod ref_cnt; |
279 | | -#[cfg(feature = "unstable-weak")] |
| 276 | +#[cfg(feature = "weak")] |
280 | 277 | mod weak; |
281 | 278 |
|
282 | 279 | use std::fmt::{Debug, Display, Formatter, Result as FmtResult}; |
@@ -1357,7 +1354,7 @@ pub type IndependentArcSwap<T> = ArcSwapAny<Arc<T>, PrivateUnsharded>; |
1357 | 1354 | /// [`ArcSwapAny`](struct.ArcSwapAny.html). |
1358 | 1355 | /// |
1359 | 1356 | /// [Weak]: std::sync::Weak |
1360 | | -#[cfg(feature = "unstable-weak")] |
| 1357 | +#[cfg(feature = "weak")] |
1361 | 1358 | pub type ArcSwapWeak<T> = ArcSwapAny<std::sync::Weak<T>>; |
1362 | 1359 |
|
1363 | 1360 | #[cfg(test)] |
|
0 commit comments