about summary refs log tree commit diff
path: root/src/rustc/back
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-30 12:54:50 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-31 16:21:47 -0700
commit4128cc4cb44acb415be3cfdfa008fd6c95ceee74 (patch)
tree321c8c7ed1c28247377bf4122365c047d69f891f /src/rustc/back
parent638db28c472c1edadc3c37f900df28f14cca7665 (diff)
downloadrust-4128cc4cb44acb415be3cfdfa008fd6c95ceee74.tar.gz
rust-4128cc4cb44acb415be3cfdfa008fd6c95ceee74.zip
Make utility funs in core::int, core::uint, etc. not by-reference
Closes #3302
Diffstat (limited to 'src/rustc/back')
-rw-r--r--src/rustc/back/rpath.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rustc/back/rpath.rs b/src/rustc/back/rpath.rs
index 286ca505714..032eb6342e1 100644
--- a/src/rustc/back/rpath.rs
+++ b/src/rustc/back/rpath.rs
@@ -125,20 +125,20 @@ fn get_relative_to(abs1: &Path, abs2: &Path) -> Path {
     let split2 = abs2.components;
     let len1 = vec::len(split1);
     let len2 = vec::len(split2);
-    assert len1 > 0u;
-    assert len2 > 0u;
+    assert len1 > 0;
+    assert len2 > 0;
 
-    let max_common_path = uint::min(&len1, &len2) - 1u;
-    let mut start_idx = 0u;
+    let max_common_path = uint::min(len1, len2) - 1;
+    let mut start_idx = 0;
     while start_idx < max_common_path
         && split1[start_idx] == split2[start_idx] {
-        start_idx += 1u;
+        start_idx += 1;
     }
 
     let mut path = ~[];
-    for uint::range(start_idx, len1 - 1u) |_i| { vec::push(path, ~".."); };
+    for uint::range(start_idx, len1 - 1) |_i| { vec::push(path, ~".."); };
 
-    vec::push_all(path, vec::view(split2, start_idx, len2 - 1u));
+    vec::push_all(path, vec::view(split2, start_idx, len2 - 1));
 
     if vec::is_not_empty(path) {
         return Path("").push_many(path);