Skip to content

Commit 40f0b45

Browse files
Kimundibrson
authored andcommitted
Moved all numeric modules in core into own directory
Reason: Better grouping of related modules, future-proving for a more extensive math library.
1 parent 2846e03 commit 40f0b45

File tree

18 files changed

+15
-10
lines changed

18 files changed

+15
-10
lines changed

src/libcore/core.rc

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,33 @@ pub mod prelude;
6060

6161
/* Primitive types */
6262

63-
#[path = "int-template.rs"] #[merge = "int-template/int.rs"]
63+
#[path = "num/int-template.rs"] #[merge = "num/int-template/int.rs"]
6464
pub mod int;
65-
#[path = "int-template.rs"] #[merge = "int-template/i8.rs"]
65+
#[path = "num/int-template.rs"] #[merge = "num/int-template/i8.rs"]
6666
pub mod i8;
67-
#[path = "int-template.rs"] #[merge = "int-template/i16.rs"]
67+
#[path = "num/int-template.rs"] #[merge = "num/int-template/i16.rs"]
6868
pub mod i16;
69-
#[path = "int-template.rs"] #[merge = "int-template/i32.rs"]
69+
#[path = "num/int-template.rs"] #[merge = "num/int-template/i32.rs"]
7070
pub mod i32;
71-
#[path = "int-template.rs"] #[merge = "int-template/i64.rs"]
71+
#[path = "num/int-template.rs"] #[merge = "num/int-template/i64.rs"]
7272
pub mod i64;
73-
#[path = "uint-template.rs"] #[merge = "uint-template/uint.rs"]
73+
#[path = "num/uint-template.rs"] #[merge = "num/uint-template/uint.rs"]
7474
pub mod uint;
7575

76-
#[path = "uint-template.rs"] #[merge = "uint-template/u8.rs"]
76+
#[path = "num/uint-template.rs"] #[merge = "num/uint-template/u8.rs"]
7777
pub mod u8;
78-
#[path = "uint-template.rs"] #[merge = "uint-template/u16.rs"]
78+
#[path = "num/uint-template.rs"] #[merge = "num/uint-template/u16.rs"]
7979
pub mod u16;
80-
#[path = "uint-template.rs"] #[merge = "uint-template/u32.rs"]
80+
#[path = "num/uint-template.rs"] #[merge = "num/uint-template/u32.rs"]
8181
pub mod u32;
82-
#[path = "uint-template.rs"] #[merge = "uint-template/u64.rs"]
82+
#[path = "num/uint-template.rs"] #[merge = "num/uint-template/u64.rs"]
8383
pub mod u64;
8484

85+
#[path = "num/float.rs"]
8586
pub mod float;
87+
#[path = "num/f32.rs"]
8688
pub mod f32;
89+
#[path = "num/f64.rs"]
8790
pub mod f64;
8891

8992
pub mod nil;
@@ -116,6 +119,7 @@ pub mod managed;
116119
/* Common traits */
117120

118121
pub mod from_str;
122+
#[path = "num/num.rs"]
119123
pub mod num;
120124
pub mod iter;
121125
pub mod to_str;
@@ -232,6 +236,7 @@ pub mod private;
232236
/* For internal use, not exported */
233237

234238
mod unicode;
239+
#[path = "num/cmath.rs"]
235240
mod cmath;
236241
mod stackwalk;
237242

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)