about summary refs log tree commit diff
path: root/src/libcore/num.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-14 20:03:31 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-14 20:03:31 -0700
commitccd36439f70814073c567bb22fdbcaafcf970b16 (patch)
tree6fb5ae755f4dafa8b9c7ee256d15008d376baf69 /src/libcore/num.rs
parentf78c90653535128b5a7c08d4850d6ef202beba40 (diff)
Make Num::from_int a static method
Diffstat (limited to 'src/libcore/num.rs')
-rw-r--r--src/libcore/num.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libcore/num.rs b/src/libcore/num.rs
index a06c4e419e5..c414d6190c8 100644
--- a/src/libcore/num.rs
+++ b/src/libcore/num.rs
@@ -1,7 +1,6 @@
 /// An interface for numbers.
 
 trait Num {
-    // FIXME: Cross-crate overloading doesn't work yet. (#2615)
     // FIXME: Trait composition. (#2616)
     pure fn add(&&other: self) -> self;
     pure fn sub(&&other: self) -> self;
@@ -11,7 +10,5 @@ trait Num {
     pure fn neg() -> self;
 
     pure fn to_int() -> int;
-    pure fn from_int(n: int) -> self;    // FIXME (#2376) Static functions.
-    // n.b. #2376 is for classes, not traits, but it could be generalized...
+    static pure fn from_int(n: int) -> self;
 }
-