about summary refs log tree commit diff
path: root/src/test/run-make
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-04-14 12:21:52 -0700
committerbors <bors@rust-lang.org>2014-04-14 12:21:52 -0700
commit246ebd2d5aebc68a581c33c33cbce5f2bc7dc7d6 (patch)
treea68a1c6dc21d247e9466995f3fe28f1bdbd7ba25 /src/test/run-make
parent347e9e4ffe60d321999bb83216e956a0b1370810 (diff)
parent713e87526eac42aa9879e7cfb556ea64d63e7a91 (diff)
downloadrust-246ebd2d5aebc68a581c33c33cbce5f2bc7dc7d6.tar.gz
rust-246ebd2d5aebc68a581c33c33cbce5f2bc7dc7d6.zip
auto merge of #13493 : Manishearth/rust/newattr-everywhere, r=alexcrichton
See #13478
Diffstat (limited to 'src/test/run-make')
-rw-r--r--src/test/run-make/bootstrap-from-c-with-green/lib.rs4
-rw-r--r--src/test/run-make/bootstrap-from-c-with-native/lib.rs4
-rw-r--r--src/test/run-make/c-dynamic-dylib/foo.rs2
-rw-r--r--src/test/run-make/c-dynamic-rlib/foo.rs2
-rw-r--r--src/test/run-make/c-link-to-rust-dylib/foo.rs2
-rw-r--r--src/test/run-make/c-link-to-rust-staticlib/foo.rs2
-rw-r--r--src/test/run-make/c-static-dylib/foo.rs2
-rw-r--r--src/test/run-make/c-static-rlib/foo.rs2
-rw-r--r--src/test/run-make/crate-data-smoke/crate.rs2
-rw-r--r--src/test/run-make/crate-data-smoke/lib.rs4
-rw-r--r--src/test/run-make/crate-data-smoke/rlib.rs4
-rw-r--r--src/test/run-make/dep-info-custom/lib.rs2
-rw-r--r--src/test/run-make/dep-info/lib.rs2
-rw-r--r--src/test/run-make/duplicate-output-flavors/foo.rs2
-rw-r--r--src/test/run-make/dylib-chain/m1.rs2
-rw-r--r--src/test/run-make/dylib-chain/m2.rs2
-rw-r--r--src/test/run-make/dylib-chain/m3.rs2
-rw-r--r--src/test/run-make/issue-12446/foo.rs2
-rw-r--r--src/test/run-make/lto-smoke/lib.rs2
-rw-r--r--src/test/run-make/mixing-deps/both.rs4
-rw-r--r--src/test/run-make/mixing-deps/dylib.rs2
-rw-r--r--src/test/run-make/mixing-libs/dylib.rs2
-rw-r--r--src/test/run-make/mixing-libs/rlib.rs2
-rw-r--r--src/test/run-make/output-type-permutations/foo.rs2
-rw-r--r--src/test/run-make/rlib-chain/m1.rs2
-rw-r--r--src/test/run-make/rlib-chain/m2.rs2
-rw-r--r--src/test/run-make/rlib-chain/m3.rs2
-rw-r--r--src/test/run-make/rustdoc-hidden-line/foo.rs2
-rw-r--r--src/test/run-make/rustdoc-json/foo.rs2
-rw-r--r--src/test/run-make/rustdoc-smoke/foo.rs2
-rw-r--r--src/test/run-make/static-unwinding/lib.rs2
-rw-r--r--src/test/run-make/staticlib-blank-lib/foo.rs2
-rw-r--r--src/test/run-make/suspicious-library/foo.rs2
-rw-r--r--src/test/run-make/symlinked-libraries/foo.rs2
-rw-r--r--src/test/run-make/unicode-input/span_length.rs2
35 files changed, 40 insertions, 40 deletions
diff --git a/src/test/run-make/bootstrap-from-c-with-green/lib.rs b/src/test/run-make/bootstrap-from-c-with-green/lib.rs
index 36b92e127f9..bb68ba49168 100644
--- a/src/test/run-make/bootstrap-from-c-with-green/lib.rs
+++ b/src/test/run-make/bootstrap-from-c-with-green/lib.rs
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id="boot#0.1"];
-#[crate_type="dylib"];
+#![crate_id="boot#0.1"]
+#![crate_type="dylib"]
 
 extern crate rustuv;
 extern crate green;
diff --git a/src/test/run-make/bootstrap-from-c-with-native/lib.rs b/src/test/run-make/bootstrap-from-c-with-native/lib.rs
index 33c8d4ffab7..7a78ec29a82 100644
--- a/src/test/run-make/bootstrap-from-c-with-native/lib.rs
+++ b/src/test/run-make/bootstrap-from-c-with-native/lib.rs
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id="boot#0.1"];
-#[crate_type="dylib"];
+#![crate_id="boot#0.1"]
+#![crate_type="dylib"]
 
 extern crate native;
 
diff --git a/src/test/run-make/c-dynamic-dylib/foo.rs b/src/test/run-make/c-dynamic-dylib/foo.rs
index 5c24e69d79f..04253be71d4 100644
--- a/src/test/run-make/c-dynamic-dylib/foo.rs
+++ b/src/test/run-make/c-dynamic-dylib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 
 #[link(name = "cfoo")]
 extern {
diff --git a/src/test/run-make/c-dynamic-rlib/foo.rs b/src/test/run-make/c-dynamic-rlib/foo.rs
index 1f13d610144..a1f01bd2b62 100644
--- a/src/test/run-make/c-dynamic-rlib/foo.rs
+++ b/src/test/run-make/c-dynamic-rlib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 
 #[link(name = "cfoo")]
 extern {
diff --git a/src/test/run-make/c-link-to-rust-dylib/foo.rs b/src/test/run-make/c-link-to-rust-dylib/foo.rs
index 0f8ca1e6ef1..32675bcba1e 100644
--- a/src/test/run-make/c-link-to-rust-dylib/foo.rs
+++ b/src/test/run-make/c-link-to-rust-dylib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 
 #[no_mangle]
 pub extern "C" fn foo() {}
diff --git a/src/test/run-make/c-link-to-rust-staticlib/foo.rs b/src/test/run-make/c-link-to-rust-staticlib/foo.rs
index 4cb7a749385..1bb19016700 100644
--- a/src/test/run-make/c-link-to-rust-staticlib/foo.rs
+++ b/src/test/run-make/c-link-to-rust-staticlib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "staticlib"];
+#![crate_type = "staticlib"]
 
 #[no_mangle]
 pub extern "C" fn foo() {}
diff --git a/src/test/run-make/c-static-dylib/foo.rs b/src/test/run-make/c-static-dylib/foo.rs
index 5c24e69d79f..04253be71d4 100644
--- a/src/test/run-make/c-static-dylib/foo.rs
+++ b/src/test/run-make/c-static-dylib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 
 #[link(name = "cfoo")]
 extern {
diff --git a/src/test/run-make/c-static-rlib/foo.rs b/src/test/run-make/c-static-rlib/foo.rs
index 1f13d610144..a1f01bd2b62 100644
--- a/src/test/run-make/c-static-rlib/foo.rs
+++ b/src/test/run-make/c-static-rlib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 
 #[link(name = "cfoo")]
 extern {
diff --git a/src/test/run-make/crate-data-smoke/crate.rs b/src/test/run-make/crate-data-smoke/crate.rs
index b6587aec0ad..db3759036d8 100644
--- a/src/test/run-make/crate-data-smoke/crate.rs
+++ b/src/test/run-make/crate-data-smoke/crate.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "foo#0.11-pre"];
+#![crate_id = "foo#0.11-pre"]
 
 // Querying about the crate metadata should *not* parse the entire crate, it
 // only needs the crate attributes (which are guaranteed to be at the top) be
diff --git a/src/test/run-make/crate-data-smoke/lib.rs b/src/test/run-make/crate-data-smoke/lib.rs
index 546d987b90c..b40e055b3cb 100644
--- a/src/test/run-make/crate-data-smoke/lib.rs
+++ b/src/test/run-make/crate-data-smoke/lib.rs
@@ -8,5 +8,5 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "mylib"];
-#[crate_type = "lib"];
+#![crate_id = "mylib"]
+#![crate_type = "lib"]
diff --git a/src/test/run-make/crate-data-smoke/rlib.rs b/src/test/run-make/crate-data-smoke/rlib.rs
index c94f7df4c92..94b8371e537 100644
--- a/src/test/run-make/crate-data-smoke/rlib.rs
+++ b/src/test/run-make/crate-data-smoke/rlib.rs
@@ -8,5 +8,5 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "mylib"];
-#[crate_type = "rlib"];
+#![crate_id = "mylib"]
+#![crate_type = "rlib"]
diff --git a/src/test/run-make/dep-info-custom/lib.rs b/src/test/run-make/dep-info-custom/lib.rs
index b8868771130..4255b1d934d 100644
--- a/src/test/run-make/dep-info-custom/lib.rs
+++ b/src/test/run-make/dep-info-custom/lib.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id="foo#0.1"];
+#![crate_id="foo#0.1"]
 
 pub mod foo;
 pub mod bar;
diff --git a/src/test/run-make/dep-info/lib.rs b/src/test/run-make/dep-info/lib.rs
index b8868771130..4255b1d934d 100644
--- a/src/test/run-make/dep-info/lib.rs
+++ b/src/test/run-make/dep-info/lib.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id="foo#0.1"];
+#![crate_id="foo#0.1"]
 
 pub mod foo;
 pub mod bar;
diff --git a/src/test/run-make/duplicate-output-flavors/foo.rs b/src/test/run-make/duplicate-output-flavors/foo.rs
index fbe967786e2..04d3ae67207 100644
--- a/src/test/run-make/duplicate-output-flavors/foo.rs
+++ b/src/test/run-make/duplicate-output-flavors/foo.rs
@@ -8,4 +8,4 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
diff --git a/src/test/run-make/dylib-chain/m1.rs b/src/test/run-make/dylib-chain/m1.rs
index dd7f5f14e40..5437c935c4e 100644
--- a/src/test/run-make/dylib-chain/m1.rs
+++ b/src/test/run-make/dylib-chain/m1.rs
@@ -8,5 +8,5 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 pub fn m1() {}
diff --git a/src/test/run-make/dylib-chain/m2.rs b/src/test/run-make/dylib-chain/m2.rs
index 9adeaa1a20a..b464f32eae2 100644
--- a/src/test/run-make/dylib-chain/m2.rs
+++ b/src/test/run-make/dylib-chain/m2.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 extern crate m1;
 
 pub fn m2() { m1::m1() }
diff --git a/src/test/run-make/dylib-chain/m3.rs b/src/test/run-make/dylib-chain/m3.rs
index 0a284e52445..bf431cc827b 100644
--- a/src/test/run-make/dylib-chain/m3.rs
+++ b/src/test/run-make/dylib-chain/m3.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 extern crate m2;
 
 pub fn m3() { m2::m2() }
diff --git a/src/test/run-make/issue-12446/foo.rs b/src/test/run-make/issue-12446/foo.rs
index f16dd5e1d5c..11c61169de9 100644
--- a/src/test/run-make/issue-12446/foo.rs
+++ b/src/test/run-make/issue-12446/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 
 extern {
     fn some_c_symbol();
diff --git a/src/test/run-make/lto-smoke/lib.rs b/src/test/run-make/lto-smoke/lib.rs
index fbe967786e2..04d3ae67207 100644
--- a/src/test/run-make/lto-smoke/lib.rs
+++ b/src/test/run-make/lto-smoke/lib.rs
@@ -8,4 +8,4 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
diff --git a/src/test/run-make/mixing-deps/both.rs b/src/test/run-make/mixing-deps/both.rs
index 358b6512ae5..7696c27ad71 100644
--- a/src/test/run-make/mixing-deps/both.rs
+++ b/src/test/run-make/mixing-deps/both.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
 
 pub static foo: int = 4;
diff --git a/src/test/run-make/mixing-deps/dylib.rs b/src/test/run-make/mixing-deps/dylib.rs
index ae5cce02245..cb74a5eb240 100644
--- a/src/test/run-make/mixing-deps/dylib.rs
+++ b/src/test/run-make/mixing-deps/dylib.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 extern crate both;
 
 use std::cast;
diff --git a/src/test/run-make/mixing-libs/dylib.rs b/src/test/run-make/mixing-libs/dylib.rs
index 08a972ef8e6..1a5bd658cd9 100644
--- a/src/test/run-make/mixing-libs/dylib.rs
+++ b/src/test/run-make/mixing-libs/dylib.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 extern crate rlib;
 
 pub fn dylib() { rlib::rlib() }
diff --git a/src/test/run-make/mixing-libs/rlib.rs b/src/test/run-make/mixing-libs/rlib.rs
index 8ed6dbd865b..ad0ea67b9ab 100644
--- a/src/test/run-make/mixing-libs/rlib.rs
+++ b/src/test/run-make/mixing-libs/rlib.rs
@@ -8,5 +8,5 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 pub fn rlib() {}
diff --git a/src/test/run-make/output-type-permutations/foo.rs b/src/test/run-make/output-type-permutations/foo.rs
index 5565ae3186c..020fbc3299b 100644
--- a/src/test/run-make/output-type-permutations/foo.rs
+++ b/src/test/run-make/output-type-permutations/foo.rs
@@ -8,6 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "bar"];
+#![crate_id = "bar"]
 
 fn main() {}
diff --git a/src/test/run-make/rlib-chain/m1.rs b/src/test/run-make/rlib-chain/m1.rs
index ddf90e9157b..e3afa352938 100644
--- a/src/test/run-make/rlib-chain/m1.rs
+++ b/src/test/run-make/rlib-chain/m1.rs
@@ -8,5 +8,5 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 pub fn m1() {}
diff --git a/src/test/run-make/rlib-chain/m2.rs b/src/test/run-make/rlib-chain/m2.rs
index 40c1575d069..2b4c181134b 100644
--- a/src/test/run-make/rlib-chain/m2.rs
+++ b/src/test/run-make/rlib-chain/m2.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 extern crate m1;
 
 pub fn m2() { m1::m1() }
diff --git a/src/test/run-make/rlib-chain/m3.rs b/src/test/run-make/rlib-chain/m3.rs
index 3d3be554757..6323a9e65aa 100644
--- a/src/test/run-make/rlib-chain/m3.rs
+++ b/src/test/run-make/rlib-chain/m3.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 extern crate m2;
 
 pub fn m3() { m2::m2() }
diff --git a/src/test/run-make/rustdoc-hidden-line/foo.rs b/src/test/run-make/rustdoc-hidden-line/foo.rs
index d9b7810cc86..8128ba05885 100644
--- a/src/test/run-make/rustdoc-hidden-line/foo.rs
+++ b/src/test/run-make/rustdoc-hidden-line/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id="foo#0.1"];
+#![crate_id="foo#0.1"]
 
 /// The '# ' lines should be removed from the output, but the #[deriving] should be
 /// retained.
diff --git a/src/test/run-make/rustdoc-json/foo.rs b/src/test/run-make/rustdoc-json/foo.rs
index 818ec1e5eb7..dda66f051bc 100644
--- a/src/test/run-make/rustdoc-json/foo.rs
+++ b/src/test/run-make/rustdoc-json/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "foo#0.1"];
+#![crate_id = "foo#0.1"]
 
 //! Very docs
 
diff --git a/src/test/run-make/rustdoc-smoke/foo.rs b/src/test/run-make/rustdoc-smoke/foo.rs
index 818ec1e5eb7..dda66f051bc 100644
--- a/src/test/run-make/rustdoc-smoke/foo.rs
+++ b/src/test/run-make/rustdoc-smoke/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "foo#0.1"];
+#![crate_id = "foo#0.1"]
 
 //! Very docs
 
diff --git a/src/test/run-make/static-unwinding/lib.rs b/src/test/run-make/static-unwinding/lib.rs
index 9fe2f947c70..5e75e1cd1cb 100644
--- a/src/test/run-make/static-unwinding/lib.rs
+++ b/src/test/run-make/static-unwinding/lib.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "rlib"];
+#![crate_type = "rlib"]
 
 pub static mut statik: int = 0;
 
diff --git a/src/test/run-make/staticlib-blank-lib/foo.rs b/src/test/run-make/staticlib-blank-lib/foo.rs
index b3d9c006976..6010e60e95c 100644
--- a/src/test/run-make/staticlib-blank-lib/foo.rs
+++ b/src/test/run-make/staticlib-blank-lib/foo.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "staticlib"];
+#![crate_type = "staticlib"]
 
 #[link(name = "foo", kind = "static")]
 extern {}
diff --git a/src/test/run-make/suspicious-library/foo.rs b/src/test/run-make/suspicious-library/foo.rs
index 890fd3a7dd6..2ec6e3834a1 100644
--- a/src/test/run-make/suspicious-library/foo.rs
+++ b/src/test/run-make/suspicious-library/foo.rs
@@ -8,6 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 
 pub fn foo() {}
diff --git a/src/test/run-make/symlinked-libraries/foo.rs b/src/test/run-make/symlinked-libraries/foo.rs
index 9fbe36f0376..fdb29974cd8 100644
--- a/src/test/run-make/symlinked-libraries/foo.rs
+++ b/src/test/run-make/symlinked-libraries/foo.rs
@@ -8,6 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "dylib"];
+#![crate_type = "dylib"]
 
 pub fn bar() {}
diff --git a/src/test/run-make/unicode-input/span_length.rs b/src/test/run-make/unicode-input/span_length.rs
index faa22962290..3b53af830e6 100644
--- a/src/test/run-make/unicode-input/span_length.rs
+++ b/src/test/run-make/unicode-input/span_length.rs
@@ -46,7 +46,7 @@ fn main() {
 
         {
             let _ = write!(&mut File::create(&main_file).unwrap(),
-                           r"\#[feature(non_ascii_idents)]; fn main() \{ {} \}",
+                           r"\#![feature(non_ascii_idents)] fn main() \{ {} \}",
                            // random string of length n
                            range(0, n).map(|_| random_char()).collect::<~str>());
         }