Jelajahi Sumber

traits: use `cast` items before `int`

For some reason, rustc 1.0.0 can't find `PrimInt` if it's before `cast`,
but later versions are fine with this.  That may have been a compiler
bug that was fixed.  Switching the order seems to work everywhere.
Josh Stone 9 tahun lalu
induk
melakukan
b73cfa57bb
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      traits/src/lib.rs

+ 2 - 2
traits/src/lib.rs

@@ -18,16 +18,16 @@ pub use identities::{Zero, One};
 pub use ops::checked::*;
 pub use ops::saturating::Saturating;
 pub use sign::{Signed, Unsigned};
-pub use int::PrimInt;
 pub use cast::*;
+pub use int::PrimInt;
 
 pub mod identities;
 pub mod sign;
 pub mod ops;
 pub mod bounds;
 pub mod float;
-pub mod int;
 pub mod cast;
+pub mod int;
 
 /// The base trait for numeric types
 pub trait Num: PartialEq + Zero + One