File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ extern crate std;
11
11
use self :: std:: prelude:: v1:: * ;
12
12
use self :: std:: cell:: Cell ;
13
13
use self :: std:: sync:: Once ;
14
+ #[ allow( deprecated) ]
14
15
pub use self :: std:: sync:: ONCE_INIT ;
15
16
16
17
// FIXME: Replace Option<T> with MaybeInitialized<T>
17
18
pub struct Lazy < T : Sync > ( Cell < Option < T > > , Once ) ;
18
19
19
20
impl < T : Sync > Lazy < T > {
21
+ #[ allow( deprecated) ]
20
22
pub const INIT : Self = Lazy ( Cell :: new ( None ) , ONCE_INIT ) ;
21
23
22
24
#[ inline( always) ]
@@ -61,5 +63,6 @@ macro_rules! __lazy_static_create {
61
63
/// This should be replaced by std's version when lazy_static starts to require at least Rust 1.27.
62
64
unsafe fn unreachable_unchecked ( ) -> ! {
63
65
enum Void { }
66
+ #[ allow( deprecated) ]
64
67
match std:: mem:: uninitialized :: < Void > ( ) { }
65
68
}
Original file line number Diff line number Diff line change @@ -133,9 +133,11 @@ fn item_name_shadowing() {
133
133
}
134
134
135
135
use std:: sync:: atomic:: AtomicBool ;
136
+ #[ allow( deprecated) ]
136
137
use std:: sync:: atomic:: ATOMIC_BOOL_INIT ;
137
138
use std:: sync:: atomic:: Ordering :: SeqCst ;
138
139
140
+ #[ allow( deprecated) ]
139
141
static PRE_INIT_FLAG : AtomicBool = ATOMIC_BOOL_INIT ;
140
142
141
143
lazy_static ! {
You can’t perform that action at this time.
0 commit comments