]> git.proxmox.com Git - cargo.git/commitdiff
Fix obsolete `extern crate` syntax in some of the tests
authorBrian Koropoff <bkoropoff@gmail.com>
Thu, 11 Sep 2014 05:36:23 +0000 (22:36 -0700)
committerBrian Koropoff <bkoropoff@gmail.com>
Thu, 11 Sep 2014 05:36:23 +0000 (22:36 -0700)
tests/test_cargo_bench.rs
tests/test_cargo_test.rs

index ed878ef28819f51e121fc273c697cd8b256fa372..9b84065b15c80ad162d2de52f8bd39ae19e6b9ab 100644 (file)
@@ -622,7 +622,7 @@ test!(bench_dylib {
             path = "bar"
         "#)
         .file("src/lib.rs", r#"
-            extern crate the_bar = "bar";
+            extern crate "bar" as the_bar;
             extern crate test;
 
             pub fn bar() { the_bar::baz(); }
@@ -631,7 +631,7 @@ test!(bench_dylib {
             fn foo(_b: &mut test::Bencher) {}
         "#)
         .file("benches/bench.rs", r#"
-            extern crate the_foo = "foo";
+            extern crate "foo" as the_foo;
             extern crate test;
 
             #[bench]
index a7685e08547524c3604c16d7b5007fcfbd57ae90..31c428557a9423bb83dc08273199d550e93f33e4 100644 (file)
@@ -662,7 +662,7 @@ test!(test_dylib {
             path = "bar"
         "#)
         .file("src/lib.rs", r#"
-            extern crate the_bar = "bar";
+            extern crate "bar" as the_bar;
 
             pub fn bar() { the_bar::baz(); }
 
@@ -670,7 +670,7 @@ test!(test_dylib {
             fn foo() { bar(); }
         "#)
         .file("tests/test.rs", r#"
-            extern crate the_foo = "foo";
+            extern crate "foo" as the_foo;
 
             #[test]
             fn foo() { the_foo::bar(); }