File tree Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -146,28 +146,18 @@ pub enum Ordering {
146
146
}
147
147
148
148
/// An `AtomicBool` initialized to `false`.
149
- #[ unstable = "may be renamed, pending conventions for static initalizers" ]
149
+ #[ stable ]
150
150
pub const ATOMIC_BOOL_INIT : AtomicBool =
151
151
AtomicBool { v : UnsafeCell { value : 0 } } ;
152
152
/// An `AtomicInt` initialized to `0`.
153
- #[ unstable = "may be renamed, pending conventions for static initalizers" ]
153
+ #[ stable ]
154
154
pub const ATOMIC_INT_INIT : AtomicInt =
155
155
AtomicInt { v : UnsafeCell { value : 0 } } ;
156
156
/// An `AtomicUint` initialized to `0`.
157
- #[ unstable = "may be renamed, pending conventions for static initalizers" ]
157
+ #[ stable ]
158
158
pub const ATOMIC_UINT_INIT : AtomicUint =
159
159
AtomicUint { v : UnsafeCell { value : 0 , } } ;
160
160
161
- /// Deprecated
162
- #[ deprecated = "renamed to ATOMIC_BOOL_INIT" ]
163
- pub const INIT_ATOMIC_BOOL : AtomicBool = ATOMIC_BOOL_INIT ;
164
- /// Deprecated
165
- #[ deprecated = "renamed to ATOMIC_INT_INIT" ]
166
- pub const INIT_ATOMIC_INT : AtomicInt = ATOMIC_INT_INIT ;
167
- /// Deprecated
168
- #[ deprecated = "renamed to ATOMIC_UINT_INIT" ]
169
- pub const INIT_ATOMIC_UINT : AtomicUint = ATOMIC_UINT_INIT ;
170
-
171
161
// NB: Needs to be -1 (0b11111111...) to make fetch_nand work correctly
172
162
const UINT_TRUE : uint = -1 ;
173
163
Original file line number Diff line number Diff line change 15
15
//! and/or blocking at all, but rather provide the necessary tools to build
16
16
//! other types of concurrent primitives.
17
17
18
- #![ experimental ]
18
+ #![ stable ]
19
19
20
20
pub use alloc:: arc:: { Arc , Weak } ;
21
21
pub use core:: atomic;
Original file line number Diff line number Diff line change 163
163
//! }
164
164
//! ```
165
165
166
+ #![ stable]
167
+
166
168
// A description of how Rust's channel implementation works
167
169
//
168
170
// Channels are supposed to be the basic building block for all other
@@ -565,6 +567,7 @@ impl<T: Send> Sender<T> {
565
567
/// drop(rx);
566
568
/// assert_eq!(tx.send(1i).err().unwrap().0, 1);
567
569
/// ```
570
+ #[ stable]
568
571
pub fn send ( & self , t : T ) -> Result < ( ) , SendError < T > > {
569
572
let ( new_inner, ret) = match * unsafe { self . inner ( ) } {
570
573
Flavor :: Oneshot ( ref p) => {
Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ impl Once {
121
121
unsafe { self . mutex . destroy ( ) }
122
122
}
123
123
}
124
-
125
- /// Deprecated
126
- #[ deprecated = "renamed to `call_once`" ]
127
- pub fn doit < F > ( & ' static self , f : F ) where F : FnOnce ( ) { self . call_once ( f) }
128
124
}
129
125
130
126
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments