5858#![ deny( missing_docs) ]
5959#![ deny( missing_debug_implementations) ]
6060#![ cfg_attr( not( stage0) , deny( warnings) ) ]
61+ // This is a temporary way to use libcore's prelude in libcore
62+ #![ cfg_attr( not( stage0) , feature( primitive_type, local_prelude) ) ]
63+ #![ cfg_attr( not( stage0) , local_prelude) ]
6164
6265#![ feature( allow_internal_unstable) ]
6366#![ feature( associated_type_defaults) ]
@@ -93,19 +96,43 @@ mod int_macros;
9396#[ macro_use]
9497mod uint_macros;
9598
99+ /// The boolean type.
100+ #[ cfg( not( stage0) ) ]
101+ #[ stable( feature = "core_primitive_types" , since = "1.9.0" ) ]
102+ #[ allow( non_camel_case_types) ]
103+ #[ primitive_type]
104+ pub type bool = bool ;
105+
106+ /// The boolean type.
107+ #[ cfg( stage0) ]
108+ #[ stable( feature = "core_primitive_types" , since = "1.9.0" ) ]
109+ pub mod bool { }
110+
111+ #[ cfg_attr( not( stage0) , primitive_type) ]
96112#[ path = "num/isize.rs" ] pub mod isize;
113+ #[ cfg_attr( not( stage0) , primitive_type) ]
97114#[ path = "num/i8.rs" ] pub mod i8;
115+ #[ cfg_attr( not( stage0) , primitive_type) ]
98116#[ path = "num/i16.rs" ] pub mod i16;
117+ #[ cfg_attr( not( stage0) , primitive_type) ]
99118#[ path = "num/i32.rs" ] pub mod i32;
119+ #[ cfg_attr( not( stage0) , primitive_type) ]
100120#[ path = "num/i64.rs" ] pub mod i64;
101121
122+ #[ cfg_attr( not( stage0) , primitive_type) ]
102123#[ path = "num/usize.rs" ] pub mod usize;
124+ #[ cfg_attr( not( stage0) , primitive_type) ]
103125#[ path = "num/u8.rs" ] pub mod u8;
126+ #[ cfg_attr( not( stage0) , primitive_type) ]
104127#[ path = "num/u16.rs" ] pub mod u16;
128+ #[ cfg_attr( not( stage0) , primitive_type) ]
105129#[ path = "num/u32.rs" ] pub mod u32;
130+ #[ cfg_attr( not( stage0) , primitive_type) ]
106131#[ path = "num/u64.rs" ] pub mod u64;
107132
133+ #[ cfg_attr( not( stage0) , primitive_type) ]
108134#[ path = "num/f32.rs" ] pub mod f32;
135+ #[ cfg_attr( not( stage0) , primitive_type) ]
109136#[ path = "num/f64.rs" ] pub mod f64;
110137
111138#[ macro_use]
@@ -138,6 +165,7 @@ pub mod any;
138165pub mod array;
139166pub mod sync;
140167pub mod cell;
168+ #[ cfg_attr( not( stage0) , primitive_type) ]
141169pub mod char;
142170pub mod panicking;
143171pub mod iter;
@@ -146,6 +174,7 @@ pub mod raw;
146174pub mod result;
147175
148176pub mod slice;
177+ #[ cfg_attr( not( stage0) , primitive_type) ]
149178pub mod str;
150179pub mod hash;
151180pub mod fmt;
0 commit comments