about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-12-13 15:55:05 -0800
committerBrian Anderson <banderson@mozilla.com>2012-12-13 16:15:08 -0800
commite7ef82dd7079bbbdb9db0c22fde0c750b2e4de8c (patch)
tree58118edb33536c8c69df4126b6e5f03ee4c626d8 /src
parent732c39c183bf6a2633095557aa9a3c3c48b84b1b (diff)
Change some uses of static methods to use the trait path
Diffstat (limited to 'src')
-rw-r--r--src/libcore/float.rs2
-rw-r--r--src/libcore/int-template.rs2
-rw-r--r--src/libcore/iter.rs8
-rw-r--r--src/libcore/path.rs4
-rw-r--r--src/libstd/workcache.rs5
5 files changed, 10 insertions, 11 deletions
diff --git a/src/libcore/float.rs b/src/libcore/float.rs
index 2a86d7ae04f..2ea9c5925ef 100644
--- a/src/libcore/float.rs
+++ b/src/libcore/float.rs
@@ -36,7 +36,7 @@ pub use f64::{modf, pow, round, sinh, tanh, tgamma, trunc};
 pub use f64::signbit;
 pub use f64::{j0, j1, jn, y0, y1, yn};
 use cmp::{Eq, Ord};
-use num::from_int;
+use num::Num::from_int;
 
 pub const NaN: float = 0.0/0.0;
 
diff --git a/src/libcore/int-template.rs b/src/libcore/int-template.rs
index 3878d6a5205..c61e2126374 100644
--- a/src/libcore/int-template.rs
+++ b/src/libcore/int-template.rs
@@ -20,7 +20,7 @@ use T = self::inst::T;
 
 use cmp::{Eq, Ord};
 use from_str::FromStr;
-use num::from_int;
+use num::Num::from_int;
 
 pub const bits : uint = inst::bits;
 pub const bytes : uint = (inst::bits / 8);
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index 4b35417f23b..7685fe06ad9 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -244,7 +244,7 @@ pub pure fn find<A: Copy,IA:BaseIter<A>>(self: &IA,
 #[inline(always)]
 pub pure fn build<A,B: Buildable<A>>(builder: fn(push: pure fn(v: A)))
     -> B {
-    build_sized(4, builder)
+    Buildable::build_sized(4, builder)
 }
 
 /**
@@ -265,7 +265,7 @@ pub pure fn build_sized_opt<A,B: Buildable<A>>(
     size: Option<uint>,
     builder: fn(push: pure fn(v: A))) -> B {
 
-    build_sized(size.get_default(4), builder)
+    Buildable::build_sized(size.get_default(4), builder)
 }
 
 // Functions that combine iteration and building
@@ -288,7 +288,7 @@ pub fn map<T,IT: BaseIter<T>,U,BU: Buildable<U>>(v: &IT, f: fn(&T) -> U)
  */
 pub pure fn from_fn<T,BT: Buildable<T>>(n_elts: uint,
                                         op: InitOp<T>) -> BT {
-    do build_sized(n_elts) |push| {
+    do Buildable::build_sized(n_elts) |push| {
         let mut i: uint = 0u;
         while i < n_elts { push(op(i)); i += 1u; }
     }
@@ -302,7 +302,7 @@ pub pure fn from_fn<T,BT: Buildable<T>>(n_elts: uint,
  */
 pub pure fn from_elem<T: Copy,BT: Buildable<T>>(n_elts: uint,
                                                 t: T) -> BT {
-    do build_sized(n_elts) |push| {
+    do Buildable::build_sized(n_elts) |push| {
         let mut i: uint = 0;
         while i < n_elts { push(t); i += 1; }
     }
diff --git a/src/libcore/path.rs b/src/libcore/path.rs
index cdd66364c11..65ed3515931 100644
--- a/src/libcore/path.rs
+++ b/src/libcore/path.rs
@@ -29,7 +29,7 @@ pub struct WindowsPath {
 }
 
 pub pure fn WindowsPath(s: &str) -> WindowsPath {
-    from_str(s)
+    GenericPath::from_str(s)
 }
 
 #[deriving_eq]
@@ -39,7 +39,7 @@ pub struct PosixPath {
 }
 
 pub pure fn PosixPath(s: &str) -> PosixPath {
-    from_str(s)
+    GenericPath::from_str(s)
 }
 
 pub trait GenericPath {
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs
index 71151c33060..b80838420f0 100644
--- a/src/libstd/workcache.rs
+++ b/src/libstd/workcache.rs
@@ -16,8 +16,7 @@ use either::{Right,Left,Either};
 use json;
 use sha1;
 use serialization::{Serializer,Serializable,
-                    Deserializer,Deserializable,
-                    deserialize};
+                    Deserializer,Deserializable};
 
 /**
 *
@@ -261,7 +260,7 @@ impl Prep {
 
                     let v : T = do io::with_str_reader(res) |rdr| {
                         let j = result::unwrap(json::from_reader(rdr));
-                        deserialize(&json::Deserializer(move j))
+                        Deserializable::deserialize(&json::Deserializer(move j))
                     };
                     return Work::new(self, move Left(move v));
                 }