about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-06-07 16:08:38 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-06-14 10:55:49 -0700
commite38eaed9789a2eb9abc2f767d9487708e17ea3dd (patch)
tree312564ee013a07451d3af9ec122bcfcd31ea7272 /src
parent3a36ffe5ff3450ebd9dba0134f8841c831f3cd0f (diff)
downloadrust-e38eaed9789a2eb9abc2f767d9487708e17ea3dd.tar.gz
rust-e38eaed9789a2eb9abc2f767d9487708e17ea3dd.zip
Add a Num typeclass
Diffstat (limited to 'src')
-rw-r--r--src/libcore/int-template.rs1
-rw-r--r--src/libcore/uint-template.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/int-template.rs b/src/libcore/int-template.rs
index b1d1457654e..0599fa77f90 100644
--- a/src/libcore/int-template.rs
+++ b/src/libcore/int-template.rs
@@ -1,5 +1,6 @@
 import T = inst::T;
 import cmp::{eq, ord};
+import num::num;
 
 export min_value, max_value;
 export min, max;
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs
index fda4253a688..f58a85c3618 100644
--- a/src/libcore/uint-template.rs
+++ b/src/libcore/uint-template.rs
@@ -1,5 +1,6 @@
 import T = inst::T;
 import cmp::{eq, ord};
+import num::num;
 
 export min_value, max_value;
 export min, max;