From b73cfa57bbd80f982f45153e696bc3f02eda5886 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 25 Mar 2016 16:12:56 -0700 Subject: [PATCH] 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. --- traits/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/traits/src/lib.rs b/traits/src/lib.rs index 366b1db..d89abe6 100644 --- a/traits/src/lib.rs +++ b/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