From: Brian Koropoff Date: Thu, 11 Sep 2014 05:36:23 +0000 (-0700) Subject: Fix obsolete `extern crate` syntax in some of the tests X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=11d2e999b374e16d261f1915f37661a8ba4cf1d6;p=cargo.git Fix obsolete `extern crate` syntax in some of the tests --- diff --git a/tests/test_cargo_bench.rs b/tests/test_cargo_bench.rs index ed878ef28..9b84065b1 100644 --- a/tests/test_cargo_bench.rs +++ b/tests/test_cargo_bench.rs @@ -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] diff --git a/tests/test_cargo_test.rs b/tests/test_cargo_test.rs index a7685e085..31c428557 100644 --- a/tests/test_cargo_test.rs +++ b/tests/test_cargo_test.rs @@ -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(); }