]> git.lizzy.rs Git - rust.git/commitdiff
Fix inner attribute syntax from `#[foo];` to `#![foo]`
authorTimothée Ravier <tim@siosm.fr>
Fri, 4 Apr 2014 00:55:06 +0000 (02:55 +0200)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 4 Apr 2014 20:22:57 +0000 (13:22 -0700)
From the 0.10 changelog:
 * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.

55 files changed:
src/doc/guide-unsafe.md
src/doc/po/ja/rust.md.po
src/etc/combine-tests.py
src/liblog/lib.rs
src/liblog/macros.rs
src/test/auxiliary/issue_2316_b.rs
src/test/auxiliary/logging_right_crate.rs
src/test/compile-fail/import-glob-0.rs
src/test/compile-fail/import-glob-circular.rs
src/test/compile-fail/name-clash-nullary.rs
src/test/compile-fail/qquote-1.rs
src/test/compile-fail/qquote-2.rs
src/test/debug-info/simd.rs
src/test/pretty/raw-str-nonexpr.rs
src/test/run-fail/glob-use-std.rs
src/test/run-fail/rt-set-exit-status-fail.rs
src/test/run-fail/rt-set-exit-status-fail2.rs
src/test/run-fail/rt-set-exit-status.rs
src/test/run-pass-fulldeps/macro-crate-outlive-expansion-phase.rs
src/test/run-pass-fulldeps/macro-crate.rs
src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs
src/test/run-pass-fulldeps/qquote.rs
src/test/run-pass-fulldeps/quote-tokens.rs
src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs
src/test/run-pass-fulldeps/syntax-extension-fourcc.rs
src/test/run-pass-fulldeps/syntax-extension-hexfloat.rs
src/test/run-pass/asm-concat-src.rs
src/test/run-pass/asm-in-out-operand.rs
src/test/run-pass/asm-out-assign.rs
src/test/run-pass/capturing-logging.rs
src/test/run-pass/conditional-debug-macro-off.rs
src/test/run-pass/export-glob-imports-target.rs
src/test/run-pass/ifmt.rs
src/test/run-pass/import-glob-0.rs
src/test/run-pass/import-glob-crate.rs
src/test/run-pass/import-in-block.rs
src/test/run-pass/intrinsics-integer.rs
src/test/run-pass/issue-2526-a.rs
src/test/run-pass/item-attributes.rs
src/test/run-pass/linkage1.rs
src/test/run-pass/logging-enabled-debug.rs
src/test/run-pass/logging-enabled.rs
src/test/run-pass/macro-crate-def-only.rs
src/test/run-pass/macro-export-inner-module.rs
src/test/run-pass/out-of-stack.rs
src/test/run-pass/phase-use-ignored.rs
src/test/run-pass/privacy-ns.rs
src/test/run-pass/reexport-star.rs
src/test/run-pass/simd-binop.rs
src/test/run-pass/simd-generics.rs
src/test/run-pass/simd-issue-10604.rs
src/test/run-pass/simd-type.rs
src/test/run-pass/tag-exports.rs
src/test/run-pass/tcp-stress.rs
src/test/run-pass/warn-ctypes-inhibit.rs

index 4c8e32982c10e75c8a84e721e427acb755728524..47b629ac4d0908da7ff623185e5d415d926a8c20 100644 (file)
@@ -294,7 +294,7 @@ asm!(assembly template
    );
 ```
 
-Any use of `asm` is feature gated (requires `#[feature(asm)];` on the
+Any use of `asm` is feature gated (requires `#![feature(asm)]` on the
 crate to allow) and of course requires an `unsafe` block.
 
 > **Note**: the examples here are given in x86/x86-64 assembly, but all
@@ -306,7 +306,7 @@ The `assembly template` is the only required parameter and must be a
 literal string (i.e `""`)
 
 ```
-#[feature(asm)];
+#![feature(asm)]
 
 #[cfg(target_arch = "x86")]
 #[cfg(target_arch = "x86_64")]
@@ -334,7 +334,7 @@ Output operands, input operands, clobbers and options are all optional
 but you must add the right number of `:` if you skip them:
 
 ```
-# #[feature(asm)];
+# #![feature(asm)]
 # #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")]
 # fn main() { unsafe {
 asm!("xor %eax, %eax"
@@ -348,7 +348,7 @@ asm!("xor %eax, %eax"
 Whitespace also doesn't matter:
 
 ```
-# #[feature(asm)];
+# #![feature(asm)]
 # #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")]
 # fn main() { unsafe {
 asm!("xor %eax, %eax" ::: "eax");
@@ -362,7 +362,7 @@ Input and output operands follow the same format: `:
 expressions must be mutable lvalues:
 
 ```
-# #[feature(asm)];
+# #![feature(asm)]
 # #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")]
 fn add(a: int, b: int) -> int {
     let mut c = 0;
@@ -390,7 +390,7 @@ compiler not to assume any values loaded into those registers will
 stay valid.
 
 ```
-# #[feature(asm)];
+# #![feature(asm)]
 # #[cfg(target_arch = "x86")] #[cfg(target_arch = "x86_64")]
 # fn main() { unsafe {
 // Put the value 0x200 in eax
index 0e96f4db84bf4bdbd999a0b1d7587652fb147120..de0164cc6b68fcc0abe19f8445fd4c94a13bc5db 100644 (file)
@@ -1,5 +1,5 @@
 # Japanese translations for Rust package
-# Copyright (C) 2013 The Rust Project Developers
+# Copyright (C) 2013-2014 The Rust Project Developers
 # This file is distributed under the same license as the Rust package.
 # Automatically generated, 2013.
 #
@@ -886,7 +886,7 @@ msgstr ""
 #: src/doc/rust.md:2008
 #, fuzzy
 #| msgid "~~~~ use std::task::spawn;"
-msgid "~~~~ {.ignore} #[warn(unstable)];"
+msgid "~~~~ {.ignore} #![warn(unstable)]"
 msgstr ""
 "~~~~\n"
 "use std::task::spawn;"
index a7f23405de5f70dfddf8f66650fd0c5ac9756809..68423b416f645d7a73a7776894a396b67655120f 100755 (executable)
@@ -54,7 +54,7 @@ c.write(
 #[crate_id=\"run_pass_stage2#0.1\"];
 #[crate_id=\"run_pass_stage2#0.1\"];
 #[feature(globs, macro_rules, struct_variant, managed_boxes)];
-#[allow(warnings)];
+#![allow(warnings)]
 extern crate collections;
 """
 )
index eb481c8b217cf5e7b93d8fefbd12cc09b4545ea0..0656dd1f641633abde9c26befe165d5f26d4e01e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -15,7 +15,7 @@
 ## Example
 
 ```
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)] extern crate log;
 
 fn main() {
index e57deb77a89eec4dafe65b69d4013e9dd2a1a1d0..f1d4a318bf080ff1bfd0a4b2babbcc939a00a520 100644 (file)
@@ -21,7 +21,7 @@
 /// # Example
 ///
 /// ```
-/// #[feature(phase)];
+/// #![feature(phase)]
 /// #[phase(syntax, link)] extern crate log;
 ///
 /// # fn main() {
@@ -45,7 +45,7 @@ macro_rules! log(
 /// # Example
 ///
 /// ```
-/// #[feature(phase)];
+/// #![feature(phase)]
 /// #[phase(syntax, link)] extern crate log;
 ///
 /// # fn main() {
@@ -63,7 +63,7 @@ macro_rules! error(
 /// # Example
 ///
 /// ```
-/// #[feature(phase)];
+/// #![feature(phase)]
 /// #[phase(syntax, link)] extern crate log;
 ///
 /// # fn main() {
@@ -81,7 +81,7 @@ macro_rules! warn(
 /// # Example
 ///
 /// ```
-/// #[feature(phase)];
+/// #![feature(phase)]
 /// #[phase(syntax, link)] extern crate log;
 ///
 /// # fn main() {
@@ -101,7 +101,7 @@ macro_rules! info(
 /// # Example
 ///
 /// ```
-/// #[feature(phase)];
+/// #![feature(phase)]
 /// #[phase(syntax, link)] extern crate log;
 ///
 /// # fn main() {
@@ -118,7 +118,7 @@ macro_rules! debug(
 /// # Example
 ///
 /// ```
-/// #[feature(phase)];
+/// #![feature(phase)]
 /// #[phase(syntax, link)] extern crate log;
 ///
 /// # fn main() {
index 36af01fe6c600e349ac9585e4d71879c03abcc21..4530fa4bc256d60f2f6ea4d989ba4f03b4e814f3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #[allow(unused_imports)];
-#[feature(globs)];
+#![feature(globs)]
 
 extern crate issue_2316_a;
 
index 10725981a063d2f3574a6ab62da5ce4876379f2a..b0a6e0f84fcd59c18365037ee4f6d563176b2d7b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)] extern crate log;
 
 pub fn foo<T>() {
index 973e36e494ca6af2552cf07dd7f54518323a4e83..210a47d2d039c0fc5f412f01f2e3877e6f6cce5a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,7 +10,7 @@
 
 // error-pattern: unresolved name
 
-#[feature(globs)];
+#![feature(globs)]
 
 use module_of_many_things::*;
 
index 3f5127a55b8bfdf892457e1451710c381ca302e7..39b18e1c445a222ed6450a68c08a34c6941f242b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,7 +10,7 @@
 
 // error-pattern: unresolved
 
-#[feature(globs)];
+#![feature(globs)]
 
 mod circ1 {
     pub use circ2::f2;
index 246f0cb9e662d508e26981a647da48a677eb3fa5..b5c0157cb5e29ed3604b141f14fb827561e504e1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 // error-pattern:declaration of `None` shadows
 use std::option::*;
index 27201b7681313e5f93d6078f846ff4b63eb54cfd..365a2fbe287cf011ade8cef796005d0a305d721b 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-test Can't use syntax crate here
 
-#[feature(quote)];
+#![feature(quote)]
 
 extern crate syntax;
 
index 97225c863e521bf7dfd10bbe2079e085bfabe7ec..f202f1bb73c42ef5b85bb13c16137b7a42aaf9a8 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-test Can't use syntax crate here
 
-#[feature(quote)];
+#![feature(quote)]
 
 extern crate syntax;
 
index e2a493e75e45f48c394d395316abc3de9b7ade95..91d53339648b01170ccdb052553ebc337958eda0 100644 (file)
@@ -40,7 +40,7 @@
 
 // debugger:continue
 
-#[allow(experimental)];
+#![allow(experimental)]
 #[allow(unused_variable)];
 
 use std::unstable::simd::{i8x16, i16x8,i32x4,i64x2,u8x16,u16x8,u32x4,u64x2,f32x4,f64x2};
index 026293e7524260f4cfc7a0947001b4c721f7dca9..b76591048ce69a39d4b6f8cf00e50927356da51c 100644 (file)
@@ -11,7 +11,7 @@
 // ignore-fast #[feature] doesn't work with check-fast
 // pp-exact
 
-#[feature(asm)];
+#![feature(asm)]
 
 #[cfg = r#"just parse this"#]
 extern crate blah = r##"blah"##;
index 77177c8fcb8ee0f390310a2e5485da2b85c4e54d..a67ab3d2efc2175d53707365a72d9650397794ee 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -11,7 +11,7 @@
 // Issue #7580
 
 // error-pattern:fail works
-#[feature(globs)];
+#![feature(globs)]
 
 use std::*;
 
index 98d7d5cf43704bac80320a88c2860e1db71ba786..385bc1452048704772a66b97f6978fa61e08c6ec 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,7 +10,7 @@
 
 // error-pattern:whatever
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)] extern crate log;
 use std::os;
 
index 67f9f5a168fba2e918f6400852b4482cf51d71db..3b5e27027b43c96b12814faf17299fb909865c88 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,7 +10,7 @@
 
 // error-pattern:whatever
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)] extern crate log;
 use std::os;
 use std::task;
index 352e0f65644703b0ef1b49f379129638fff2a2e1..b94045e5d124225d42ad181bd4aa17cccdae23d4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,7 +10,7 @@
 
 // error-pattern:whatever
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)] extern crate log;
 use std::os;
 
index eb705b8d8a064e88a780f723ce486f0abc8557f4..cde78da3f61bcdd9220c184016ff4de02ab78555 100644 (file)
@@ -14,7 +14,7 @@
 // ignore-android
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate macro_crate_outlive_expansion_phase;
index 6f412f01bb991876fa603e3ef8811924c31a8529..e30498bb3c1d4f90ca434b4c559af3ce3300e496 100644 (file)
@@ -14,7 +14,7 @@
 // ignore-android
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate macro_crate_test;
index a7b8297487d0011db7d0fe3c7bd13438b7d5dd48..ff82ff62a59ee75fd3d44fe90387de665b588574 100644 (file)
@@ -24,7 +24,7 @@
 // can't run host binaries, and force-host to make this test build as the host
 // arch.
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax, link)]
 extern crate macro_crate_test;
index 1e26ce0c4f3e28947f12248d62439697932f7de6..1def436b4de0184a40fe0672b92bb5e6d991ae72 100644 (file)
@@ -11,7 +11,7 @@
 // ignore-pretty
 // ignore-test
 
-#[feature(quote)];
+#![feature(quote)]
 
 extern crate syntax;
 
index 1bf601f71b4cf12746d9a8f106bb8fb15673b3d8..5180ac68482f0f51146fd457ac14be11c55a5227 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-test
 
-#[feature(quote)];
+#![feature(quote)]
 #[feature(managed_boxes)];
 
 extern crate syntax;
index ac8d361bf5aa40a064b28a262e7177b2550f2213..ea2ffb8dcf89a16061e67750d1889fb8bdb0425a 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-fast
 // ignore-android
-#[feature(quote)];
+#![feature(quote)]
 #[deny(unused_variable)];
 
 extern crate syntax;
index a6f118d77faab96c4780dc40850e83136b29e948..54687c03da59677da94200f6ef3929368878e7ee 100644 (file)
@@ -13,7 +13,7 @@
 // ignore-pretty
 // ignore-cross-compile
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate fourcc;
index 6eeefabcf7cb9c4792cf42a22e35be192d392644..eb25d82e5491bf7fbabd7466c1633820896d0561 100644 (file)
@@ -13,7 +13,7 @@
 // ignore-cross-compile #12102
 // ignore-fast
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax)]
 extern crate hexfloat;
 
index 96c98a0372051747e063b5f9b78349f7cd0579a7..5615089dcdc618f5edc47362f9f4226ca00dae3f 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 pub fn main() {
     unsafe { asm!(concat!("", "")) };
index 11d4321b3e9ec4b2fb1d68df33d5be1052f1c6c4..0b5502aa33079b4a248aa38dba5b76bbd52cfa95 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 #[cfg(target_arch = "x86")]
 #[cfg(target_arch = "x86_64")]
index 2f6b87f26a729a70c0151096753d7afee0feb1c1..de2630d1ca9a3a46c8063fb6dfc8be54d581a32d 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 #[cfg(target_arch = "x86")]
 #[cfg(target_arch = "x86_64")]
index 6c1b2f4653af36977e8268789238e79bfb0d83cb..10976c5c612cd7016bf1bcf225763fda03a43831 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-android (FIXME #11419)
 // exec-env:RUST_LOG=info
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax, link)]
 extern crate log;
index 8a2a00f56385d203fac3641d436d77e49cf1989e..460846ef31c111f89a4aec1ef3895dced73b2f1b 100644 (file)
@@ -12,7 +12,7 @@
 // compile-flags: --cfg ndebug
 // exec-env:RUST_LOG=conditional-debug-macro-off=4
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)]
 extern crate log;
 
index 3d8e7608788258522518828d81a5b6efc3e091d9..e4f037e4563ce978a07bb57ccd94658f3e475dd2 100644 (file)
@@ -15,7 +15,7 @@
 
 // Modified to not use export since it's going away. --pcw
 
-#[feature(globs)];
+#![feature(globs)]
 
 mod foo {
     use foo::bar::*;
index 7e9afc4de564f531b83d07c53297d5bbb4e5a2b3..7cdd932faf6fdd79712d97c1068ce389dfb6a8d5 100644 (file)
@@ -11,7 +11,7 @@
 // ignore-fast: check-fast screws up repr paths
 
 #[feature(macro_rules)];
-#[deny(warnings)];
+#![deny(warnings)]
 #[allow(unused_must_use)];
 #[allow(deprecated_owned_vector)];
 
index dc5c7d11769b87c489f0d125015f8c6777b23b11..5f4bf557b23f6e81b1200068abecdfa57aa7f754 100644 (file)
@@ -10,7 +10,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 use module_of_many_things::*;
 use dug::too::greedily::and::too::deep::*;
index a9a9f78943fe295b9652c5593e7b417a5cd4a718..e1ca890f4fde741664f0b86a480d4049b54606ce 100644 (file)
@@ -10,7 +10,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 #[allow(dead_assignment)];
 
 use std::mem::*;
index 7c0037c1e15d225d1da06ff3e2d9af36ec867cbc..24196c225719a113887d410990dad2b80e0a1b4f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 pub fn main() {
     use std::mem::replace;
index 88c964462e835bfdf51881de68c717251fe4c096..867e12d4139ed68c3b404d1c41c31a2b3b21da3c 100644 (file)
@@ -10,7 +10,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 mod rusti {
     extern "rust-intrinsic" {
index b10871f78d4425045c13aafe03dab77317294257..00323b606495d92b06f474d01ef29e6beb92a0cf 100644 (file)
@@ -11,7 +11,7 @@
 // ignore-fast
 // aux-build:issue-2526.rs
 
-#[feature(globs)];
+#![feature(globs)]
 #[allow(unused_imports)];
 
 extern crate issue_2526;
index 2235676441047eeccb28f5ae04824fab82d1ae3e..ae5a86c699eafa1dfaf04cd1b29e7b9f02e81c68 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -160,7 +160,7 @@ pub mod rustrt {
         use std::libc;
 
         extern {
-            #[attr];
+            #![attr]
 
             #[attr]
             fn rust_get_test_int() -> libc::intptr_t;
index c6f672c5d34d0ac3ce92de28038472b16bbc229c..4b2c98614931fd92b9e9885255ceec70181d3ed4 100644 (file)
@@ -14,7 +14,7 @@
 // ignore-macos
 // aux-build:linkage1.rs
 
-#[feature(linkage)];
+#![feature(linkage)]
 
 extern crate other = "linkage1";
 
index b3a77aa96752f1f0de6a7dae3555d0cf3fc58321..f5db1c7b1d6e7467943eaf1355eb7b0d0e70e97f 100644 (file)
@@ -12,7 +12,7 @@
 // compile-flags:--cfg ndebug
 // exec-env:RUST_LOG=logging-enabled-debug=debug
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)]
 extern crate log;
 
index 587e0b9d4c5fa92b1d69f369429c4854a649e94b..31437586897bb43f4cc323bfdb571bf22b006ab2 100644 (file)
@@ -11,7 +11,7 @@
 // ignore-fast
 // exec-env:RUST_LOG=logging-enabled=info
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)]
 extern crate log;
 
index 2c2ffd50eae9b9476bb7d0d49e63f784bed21dd8..75b001a71d2b6157acefad16c8bdbef3aaacee69 100644 (file)
@@ -11,7 +11,7 @@
 // aux-build:macro_crate_def_only.rs
 // ignore-fast
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate macro_crate_def_only;
index 14c6423ce40cc8357fc482f19fc9166f71218730..d77b360336c96251820ab167c85705b8bb13ad51 100644 (file)
@@ -12,7 +12,7 @@
 //ignore-stage1
 //ignore-fast
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate macro_export_inner_module;
index 71fde8667032207ba9db4c6a23a5adaa73cbaec0..00861bd9b21d580b2c4d6e68a92b7466d31c2f88 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-fast
 
-#[feature(asm)];
+#![feature(asm)]
 
 use std::io::Process;
 use std::os;
index 2b1a74c74accd84912b77e48deeeb5ea44c1331d..008a04eaa4949b9d9994bce8106e123c931459c9 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-fast
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 use std::mem;
index c933e5bc919d20ca0e9d46dc259831b984f7af0d..bc7df6bb599af5d9e4d7048dce9f201b329a5c8f 100644 (file)
@@ -13,7 +13,7 @@
 // Check we do the correct privacy checks when we import a name and there is an
 // item with that name in both the value and type namespaces.
 
-#[feature(globs)];
+#![feature(globs)]
 #[allow(dead_code)];
 #[allow(unused_imports)];
 
index f6f7c9921ef02ad55cafa1693d94bb20525e912b..3b7696b548aaf5e4cadbd51c48cb0332fc5fead1 100644 (file)
@@ -10,7 +10,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 // FIXME #3654
 
index 85c6555d7ce18f8de072b2bf3172d5786f26d62f..0c2744f68387db2597521e1b8aa41368d554dffb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(experimental)];
+#![allow(experimental)]
 
 use std::unstable::simd::{i32x4, f32x4, u32x4};
 
index 7ef8913a847533a6b6ee03548d9e4a31a5344b40..75062a462247b3c3a5971b18d3efff30a642ef1d 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-fast
 
-#[feature(simd)];
+#![feature(simd)]
 
 use std::ops;
 
index 62dce6968806acfb74351186ec31e14efa834b93..4e3c3afc5ad8ae45910016b01d788e6771dfb80d 100644 (file)
@@ -10,8 +10,8 @@
 
 // ignore-fast
 
-#[allow(experimental)];
-#[feature(simd)];
+#![allow(experimental)]
+#![feature(simd)]
 
 pub fn main() {
     let _o = None::<std::unstable::simd::i32x4>;
index 4506a69425222dc22ee1c02d6134b26c1e220174..c79f285e486af3336c8440113f7060b44e9140b3 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-fast feature doesn't work
 
-#[feature(simd)];
+#![feature(simd)]
 
 #[simd]
 struct RGBA {
index 2fd6be40d11fa240492bf074905ef68f398f3bfc..bc749b5d905e4e6829daed622fc1e104a8ec77aa 100644 (file)
@@ -10,7 +10,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 use alder::*;
 
index 61478e3fdb49ade8f49218c9b33a9a858510088c..d18e2ac7354344c42e01e253a7b8428828c6be62 100644 (file)
@@ -13,7 +13,7 @@
 // ignore-android needs extra network permissions
 // exec-env:RUST_LOG=debug
 
-#[feature(phase)];
+#![feature(phase)]
 #[phase(syntax, link)]
 extern crate log;
 
index 30ce77153116fb70f54f8bca95621966427ddff0..9b0a23401565631654d9316a537330c38c0320b1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -10,7 +10,7 @@
 
 // compile-flags:-D ctypes
 
-#[allow(ctypes)];
+#![allow(ctypes)]
 
 mod libc {
     extern {