diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-22 12:33:46 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-01-23 15:50:03 -0800 |
| commit | 9758c488a94e77cc8a110a6783a99cf5b91326db (patch) | |
| tree | ca5f2436cb4b9dc39aa7f525cf4a5fc9288d0ac7 /src/libcore/atomic.rs | |
| parent | cd6d9eab5d75584edfcae4ffdef8b0836db80c1e (diff) | |
| download | rust-9758c488a94e77cc8a110a6783a99cf5b91326db.tar.gz rust-9758c488a94e77cc8a110a6783a99cf5b91326db.zip | |
Deprecated attributes don't take 'feature' names and are paired with stable/unstable
Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
Diffstat (limited to 'src/libcore/atomic.rs')
| -rw-r--r-- | src/libcore/atomic.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libcore/atomic.rs b/src/libcore/atomic.rs index e4e6fcd3afc..5f48c965e70 100644 --- a/src/libcore/atomic.rs +++ b/src/libcore/atomic.rs @@ -1036,7 +1036,8 @@ pub fn fence(order: Ordering) { } } -#[deprecated(feature = "core", since = "1.0.0", +#[unstable(feature = "core")] +#[deprecated(since = "1.0.0", reason = "renamed to AtomicIsize")] #[allow(missing_docs)] pub struct AtomicInt { @@ -1045,7 +1046,8 @@ pub struct AtomicInt { unsafe impl Sync for AtomicInt {} -#[deprecated(feature = "core", since = "1.0.0", +#[unstable(feature = "core")] +#[deprecated(since = "1.0.0", reason = "renamed to AtomicUsize")] #[allow(missing_docs)] pub struct AtomicUint { @@ -1054,12 +1056,14 @@ pub struct AtomicUint { unsafe impl Sync for AtomicUint {} -#[deprecated(feature = "core", since = "1.0.0", +#[unstable(feature = "core")] +#[deprecated(since = "1.0.0", reason = "use ATOMIC_ISIZE_INIT instead")] #[allow(missing_docs, deprecated)] pub const ATOMIC_INT_INIT: AtomicInt = AtomicInt { v: UnsafeCell { value: 0 } }; -#[deprecated(feature = "core", since = "1.0.0", +#[unstable(feature = "core")] +#[deprecated(since = "1.0.0", reason = "use ATOMIC_USIZE_INIT instead")] #[allow(missing_docs, deprecated)] pub const ATOMIC_UINT_INIT: AtomicUint = |
