]> git.lizzy.rs Git - rust.git/commitdiff
Fix some of the testcases
authorNiels langager Ellegaard <niels.ellegaard@gmail.com>
Sun, 5 Jan 2014 11:41:56 +0000 (12:41 +0100)
committerNiels langager Ellegaard <niels.ellegaard@gmail.com>
Sun, 5 Jan 2014 11:41:56 +0000 (12:41 +0100)
simple-lib and deeply and c-dependencies still have problems.
But they were nt caused by this pull request

src/librustpkg/testsuite/pass/src/c-dependencies/pkg.rs
src/librustpkg/testsuite/pass/src/foo/lib.rs
src/librustpkg/testsuite/pass/src/hello-world/main.rs
src/librustpkg/testsuite/pass/src/install-paths/bench.rs

index e5386aa701bf15224b3f85265b34d8ecfa4aed30..85ddd3e58d4831dcc6b084b727035e56bd5e8c0e 100644 (file)
@@ -58,7 +58,7 @@ pub fn main() {
                                                            [~"-c"],
                                                            [~"foo.c"],
                                                            "foo");
-            let out_p = Path::new(out_path);
+            let out_p = Path::new(out_path.unwrap());
             out_p.as_str().unwrap().to_owned()
         };
         out_path
index 91fc466f8c65b075eef43d88604ebc07678fbe78..63743160d12e1f7be52e761144a7bd44c6bb0807 100644 (file)
@@ -8,4 +8,4 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn f() {}
+pub fn f() {}
index d4c65954fe6298ee5258767a7a78f4043f94534e..1d18a3aaa431597326d4193d23caa8fa77bc742a 100644 (file)
@@ -19,5 +19,5 @@
 */
 
 fn main() {
-    println(~"Hello world!");
+    println("Hello world!");
 }
index 3d22ddc57faa30021e03b924b1aed2e12798797a..a886a7e0079d9b9730e1ca193151bed9539fafbe 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #[bench]
-fn g() {
+pub fn g() {
     let mut x = 0;
     while(x < 1000) {
         x += 1;