diff --git a/src/libcore/int-template.rs b/src/libcore/int-template.rs index 2ea166cfc3689..cfe6169760868 100644 --- a/src/libcore/int-template.rs +++ b/src/libcore/int-template.rs @@ -1,6 +1,5 @@ import T = inst::T; import cmp::{eq, ord}; -import num::num; export min_value, max_value; export min, max; @@ -124,7 +123,7 @@ impl eq of eq for T { } } -impl num of num for T { +impl num of num::num for T { fn add(&&other: T) -> T { ret self + other; } fn sub(&&other: T) -> T { ret self - other; } fn mul(&&other: T) -> T { ret self * other; } @@ -196,7 +195,7 @@ fn test_to_str() { #[test] fn test_ifaces() { - fn test(ten: U) { + fn test(ten: U) { assert (ten.to_int() == 10); let two = ten.from_int(2); diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index 8a79270361d76..cb9b759eeaed1 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -1,6 +1,5 @@ import T = inst::T; import cmp::{eq, ord}; -import num::num; export min_value, max_value; export min, max; @@ -65,7 +64,7 @@ impl eq of eq for T { } } -impl num of num for T { +impl num of num::num for T { fn add(&&other: T) -> T { ret self + other; } fn sub(&&other: T) -> T { ret self - other; } fn mul(&&other: T) -> T { ret self * other; }