about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/os.rs2
-rw-r--r--src/rustc/back/rpath.rs30
2 files changed, 16 insertions, 16 deletions
diff --git a/src/libcore/os.rs b/src/libcore/os.rs
index 92327829247..91f08ef5dd2 100644
--- a/src/libcore/os.rs
+++ b/src/libcore/os.rs
@@ -554,7 +554,7 @@ fn list_dir(p: path) -> ~[~str] {
     fn star(p: ~str) -> ~str { p }
 
     #[cfg(windows)]
-    fn star(p: str) -> ~str {
+    fn star(p: ~str) -> ~str {
         let pl = str::len(p);
         if pl == 0u || (p[pl - 1u] as char != path::consts::path_sep
                         || p[pl - 1u] as char != path::consts::alt_path_sep) {
diff --git a/src/rustc/back/rpath.rs b/src/rustc/back/rpath.rs
index 2e16d92cec8..7062d6e997e 100644
--- a/src/rustc/back/rpath.rs
+++ b/src/rustc/back/rpath.rs
@@ -314,32 +314,32 @@ mod test {
     #[test]
     #[cfg(target_os = "linux")]
     fn test_rpath_relative() {
-      let o = session::os_linux;
-      check not_win32(o);
-      let res = get_rpath_relative_to_output(o,
+        let o = session::os_linux;
+        check not_win32(o);
+        let res = get_rpath_relative_to_output(o,
             ~"/usr", ~"bin/rustc", ~"lib/libstd.so");
-      assert res == ~"$ORIGIN/../lib";
+        assert res == ~"$ORIGIN/../lib";
     }
 
     #[test]
     #[cfg(target_os = "freebsd")]
     fn test_rpath_relative() {
-      let o = session::os_freebsd;
-      check not_win32(o);
-      let res = get_rpath_relative_to_output(o,
-            "/usr", "bin/rustc", "lib/libstd.so");
-      assert res == "$ORIGIN/../lib";
+        let o = session::os_freebsd;
+        check not_win32(o);
+        let res = get_rpath_relative_to_output(o,
+            ~"/usr", ~"bin/rustc", ~"lib/libstd.so");
+        assert res == ~"$ORIGIN/../lib";
     }
 
     #[test]
     #[cfg(target_os = "macos")]
     fn test_rpath_relative() {
-      // this is why refinements would be nice
-      let o = session::os_macos;
-      check not_win32(o);
-      let res = get_rpath_relative_to_output(o, "/usr", "bin/rustc",
-                                             "lib/libstd.so");
-        assert res == "@executable_path/../lib";
+        // this is why refinements would be nice
+        let o = session::os_macos;
+        check not_win32(o);
+        let res = get_rpath_relative_to_output(o, ~"/usr", ~"bin/rustc",
+                                               ~"lib/libstd.so");
+        assert res == ~"@executable_path/../lib";
     }
 
     #[test]