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.
This commit is contained in:
Josh Stone 2016-03-25 16:12:56 -07:00
parent 37325eec73
commit b73cfa57bb
1 changed files with 2 additions and 2 deletions

View File

@ -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