core: Inherit the specific numeric modules
This implements all traits inside of core::num for all the primitive types, removing all the functionality from libstd. The std modules reexport all of the necessary items from the core modules.
This commit is contained in:
@@ -21,6 +21,25 @@
|
||||
#![feature(globs, macro_rules, managed_boxes)]
|
||||
#![deny(missing_doc)]
|
||||
|
||||
#[path = "num/float_macros.rs"] mod float_macros;
|
||||
#[path = "num/int_macros.rs"] mod int_macros;
|
||||
#[path = "num/uint_macros.rs"] mod uint_macros;
|
||||
|
||||
#[path = "num/int.rs"] pub mod int;
|
||||
#[path = "num/i8.rs"] pub mod i8;
|
||||
#[path = "num/i16.rs"] pub mod i16;
|
||||
#[path = "num/i32.rs"] pub mod i32;
|
||||
#[path = "num/i64.rs"] pub mod i64;
|
||||
|
||||
#[path = "num/uint.rs"] pub mod uint;
|
||||
#[path = "num/u8.rs"] pub mod u8;
|
||||
#[path = "num/u16.rs"] pub mod u16;
|
||||
#[path = "num/u32.rs"] pub mod u32;
|
||||
#[path = "num/u64.rs"] pub mod u64;
|
||||
|
||||
#[path = "num/f32.rs"] pub mod f32;
|
||||
#[path = "num/f64.rs"] pub mod f64;
|
||||
|
||||
pub mod num;
|
||||
|
||||
/* Core modules for ownership management */
|
||||
|
||||
Reference in New Issue
Block a user