diff --git a/src/doc/guide-unsafe.md b/src/doc/guide-unsafe.md index 4c8e32982c10e..47b629ac4d090 100644 --- a/src/doc/guide-unsafe.md +++ b/src/doc/guide-unsafe.md @@ -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 diff --git a/src/doc/po/ja/rust.md.po b/src/doc/po/ja/rust.md.po index 0e96f4db84bf4..de0164cc6b68f 100644 --- a/src/doc/po/ja/rust.md.po +++ b/src/doc/po/ja/rust.md.po @@ -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;" diff --git a/src/etc/combine-tests.py b/src/etc/combine-tests.py index a7f23405de5f7..68423b416f645 100755 --- a/src/etc/combine-tests.py +++ b/src/etc/combine-tests.py @@ -54,7 +54,7 @@ def scrub(b): #[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; """ ) diff --git a/src/liblog/lib.rs b/src/liblog/lib.rs index eb481c8b217cf..0656dd1f64163 100644 --- a/src/liblog/lib.rs +++ b/src/liblog/lib.rs @@ -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 @@ Utilities for program-wide and customizable logging ## Example ``` -#[feature(phase)]; +#![feature(phase)] #[phase(syntax, link)] extern crate log; fn main() { diff --git a/src/liblog/macros.rs b/src/liblog/macros.rs index e57deb77a89ee..f1d4a318bf080 100644 --- a/src/liblog/macros.rs +++ b/src/liblog/macros.rs @@ -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() { diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index 2138d210443f5..a125d27e36c0d 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -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. // diff --git a/src/test/auxiliary/issue_2316_b.rs b/src/test/auxiliary/issue_2316_b.rs index 36af01fe6c600..4530fa4bc256d 100644 --- a/src/test/auxiliary/issue_2316_b.rs +++ b/src/test/auxiliary/issue_2316_b.rs @@ -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; diff --git a/src/test/auxiliary/logging_right_crate.rs b/src/test/auxiliary/logging_right_crate.rs index 10725981a063d..b0a6e0f84fcd5 100644 --- a/src/test/auxiliary/logging_right_crate.rs +++ b/src/test/auxiliary/logging_right_crate.rs @@ -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() { diff --git a/src/test/compile-fail/import-glob-0.rs b/src/test/compile-fail/import-glob-0.rs index 973e36e494ca6..210a47d2d039c 100644 --- a/src/test/compile-fail/import-glob-0.rs +++ b/src/test/compile-fail/import-glob-0.rs @@ -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::*; diff --git a/src/test/compile-fail/import-glob-circular.rs b/src/test/compile-fail/import-glob-circular.rs index 3f5127a55b8bf..39b18e1c445a2 100644 --- a/src/test/compile-fail/import-glob-circular.rs +++ b/src/test/compile-fail/import-glob-circular.rs @@ -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; diff --git a/src/test/compile-fail/name-clash-nullary.rs b/src/test/compile-fail/name-clash-nullary.rs index 246f0cb9e662d..b5c0157cb5e29 100644 --- a/src/test/compile-fail/name-clash-nullary.rs +++ b/src/test/compile-fail/name-clash-nullary.rs @@ -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::*; diff --git a/src/test/compile-fail/qquote-1.rs b/src/test/compile-fail/qquote-1.rs index 27201b7681313..365a2fbe287cf 100644 --- a/src/test/compile-fail/qquote-1.rs +++ b/src/test/compile-fail/qquote-1.rs @@ -10,7 +10,7 @@ // ignore-test Can't use syntax crate here -#[feature(quote)]; +#![feature(quote)] extern crate syntax; diff --git a/src/test/compile-fail/qquote-2.rs b/src/test/compile-fail/qquote-2.rs index 97225c863e521..f202f1bb73c42 100644 --- a/src/test/compile-fail/qquote-2.rs +++ b/src/test/compile-fail/qquote-2.rs @@ -10,7 +10,7 @@ // ignore-test Can't use syntax crate here -#[feature(quote)]; +#![feature(quote)] extern crate syntax; diff --git a/src/test/debug-info/simd.rs b/src/test/debug-info/simd.rs index e2a493e75e45f..91d53339648b0 100644 --- a/src/test/debug-info/simd.rs +++ b/src/test/debug-info/simd.rs @@ -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}; diff --git a/src/test/pretty/raw-str-nonexpr.rs b/src/test/pretty/raw-str-nonexpr.rs index 026293e752426..b76591048ce69 100644 --- a/src/test/pretty/raw-str-nonexpr.rs +++ b/src/test/pretty/raw-str-nonexpr.rs @@ -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"##; diff --git a/src/test/run-fail/glob-use-std.rs b/src/test/run-fail/glob-use-std.rs index 77177c8fcb8ee..a67ab3d2efc21 100644 --- a/src/test/run-fail/glob-use-std.rs +++ b/src/test/run-fail/glob-use-std.rs @@ -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::*; diff --git a/src/test/run-fail/rt-set-exit-status-fail.rs b/src/test/run-fail/rt-set-exit-status-fail.rs index 98d7d5cf43704..385bc14520487 100644 --- a/src/test/run-fail/rt-set-exit-status-fail.rs +++ b/src/test/run-fail/rt-set-exit-status-fail.rs @@ -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; diff --git a/src/test/run-fail/rt-set-exit-status-fail2.rs b/src/test/run-fail/rt-set-exit-status-fail2.rs index 67f9f5a168fba..3b5e27027b43c 100644 --- a/src/test/run-fail/rt-set-exit-status-fail2.rs +++ b/src/test/run-fail/rt-set-exit-status-fail2.rs @@ -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; diff --git a/src/test/run-fail/rt-set-exit-status.rs b/src/test/run-fail/rt-set-exit-status.rs index 352e0f6564470..b94045e5d1242 100644 --- a/src/test/run-fail/rt-set-exit-status.rs +++ b/src/test/run-fail/rt-set-exit-status.rs @@ -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; diff --git a/src/test/run-pass-fulldeps/macro-crate-outlive-expansion-phase.rs b/src/test/run-pass-fulldeps/macro-crate-outlive-expansion-phase.rs index eb705b8d8a064..cde78da3f61bc 100644 --- a/src/test/run-pass-fulldeps/macro-crate-outlive-expansion-phase.rs +++ b/src/test/run-pass-fulldeps/macro-crate-outlive-expansion-phase.rs @@ -14,7 +14,7 @@ // ignore-android // ignore-cross-compile #12102 -#[feature(phase)]; +#![feature(phase)] #[phase(syntax)] extern crate macro_crate_outlive_expansion_phase; diff --git a/src/test/run-pass-fulldeps/macro-crate.rs b/src/test/run-pass-fulldeps/macro-crate.rs index 6f412f01bb991..e30498bb3c1d4 100644 --- a/src/test/run-pass-fulldeps/macro-crate.rs +++ b/src/test/run-pass-fulldeps/macro-crate.rs @@ -14,7 +14,7 @@ // ignore-android // ignore-cross-compile #12102 -#[feature(phase)]; +#![feature(phase)] #[phase(syntax)] extern crate macro_crate_test; diff --git a/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs b/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs index a7b8297487d00..ff82ff62a59ee 100644 --- a/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs +++ b/src/test/run-pass-fulldeps/phase-syntax-link-does-resolve.rs @@ -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; diff --git a/src/test/run-pass-fulldeps/qquote.rs b/src/test/run-pass-fulldeps/qquote.rs index 1e26ce0c4f3e2..1def436b4de01 100644 --- a/src/test/run-pass-fulldeps/qquote.rs +++ b/src/test/run-pass-fulldeps/qquote.rs @@ -11,7 +11,7 @@ // ignore-pretty // ignore-test -#[feature(quote)]; +#![feature(quote)] extern crate syntax; diff --git a/src/test/run-pass-fulldeps/quote-tokens.rs b/src/test/run-pass-fulldeps/quote-tokens.rs index 1bf601f71b4cf..5180ac68482f0 100644 --- a/src/test/run-pass-fulldeps/quote-tokens.rs +++ b/src/test/run-pass-fulldeps/quote-tokens.rs @@ -10,7 +10,7 @@ // ignore-test -#[feature(quote)]; +#![feature(quote)] #[feature(managed_boxes)]; extern crate syntax; diff --git a/src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs b/src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs index ac8d361bf5aa4..ea2ffb8dcf89a 100644 --- a/src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs +++ b/src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs @@ -10,7 +10,7 @@ // ignore-fast // ignore-android -#[feature(quote)]; +#![feature(quote)] #[deny(unused_variable)]; extern crate syntax; diff --git a/src/test/run-pass-fulldeps/syntax-extension-fourcc.rs b/src/test/run-pass-fulldeps/syntax-extension-fourcc.rs index a6f118d77faab..54687c03da596 100644 --- a/src/test/run-pass-fulldeps/syntax-extension-fourcc.rs +++ b/src/test/run-pass-fulldeps/syntax-extension-fourcc.rs @@ -13,7 +13,7 @@ // ignore-pretty // ignore-cross-compile -#[feature(phase)]; +#![feature(phase)] #[phase(syntax)] extern crate fourcc; diff --git a/src/test/run-pass-fulldeps/syntax-extension-hexfloat.rs b/src/test/run-pass-fulldeps/syntax-extension-hexfloat.rs index 6eeefabcf7cb9..eb25d82e5491b 100644 --- a/src/test/run-pass-fulldeps/syntax-extension-hexfloat.rs +++ b/src/test/run-pass-fulldeps/syntax-extension-hexfloat.rs @@ -13,7 +13,7 @@ // ignore-cross-compile #12102 // ignore-fast -#[feature(phase)]; +#![feature(phase)] #[phase(syntax)] extern crate hexfloat; diff --git a/src/test/run-pass/asm-concat-src.rs b/src/test/run-pass/asm-concat-src.rs index 96c98a0372051..5615089dcdc61 100644 --- a/src/test/run-pass/asm-concat-src.rs +++ b/src/test/run-pass/asm-concat-src.rs @@ -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!("", "")) }; diff --git a/src/test/run-pass/asm-in-out-operand.rs b/src/test/run-pass/asm-in-out-operand.rs index 11d4321b3e9ec..0b5502aa33079 100644 --- a/src/test/run-pass/asm-in-out-operand.rs +++ b/src/test/run-pass/asm-in-out-operand.rs @@ -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")] diff --git a/src/test/run-pass/asm-out-assign.rs b/src/test/run-pass/asm-out-assign.rs index 2f6b87f26a729..de2630d1ca9a3 100644 --- a/src/test/run-pass/asm-out-assign.rs +++ b/src/test/run-pass/asm-out-assign.rs @@ -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")] diff --git a/src/test/run-pass/capturing-logging.rs b/src/test/run-pass/capturing-logging.rs index 6c1b2f4653af3..10976c5c612cd 100644 --- a/src/test/run-pass/capturing-logging.rs +++ b/src/test/run-pass/capturing-logging.rs @@ -12,7 +12,7 @@ // ignore-android (FIXME #11419) // exec-env:RUST_LOG=info -#[feature(phase)]; +#![feature(phase)] #[phase(syntax, link)] extern crate log; diff --git a/src/test/run-pass/conditional-debug-macro-off.rs b/src/test/run-pass/conditional-debug-macro-off.rs index 8a2a00f56385d..460846ef31c11 100644 --- a/src/test/run-pass/conditional-debug-macro-off.rs +++ b/src/test/run-pass/conditional-debug-macro-off.rs @@ -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; diff --git a/src/test/run-pass/export-glob-imports-target.rs b/src/test/run-pass/export-glob-imports-target.rs index 3d8e760878825..e4f037e4563ce 100644 --- a/src/test/run-pass/export-glob-imports-target.rs +++ b/src/test/run-pass/export-glob-imports-target.rs @@ -15,7 +15,7 @@ // Modified to not use export since it's going away. --pcw -#[feature(globs)]; +#![feature(globs)] mod foo { use foo::bar::*; diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs index 7e9afc4de564f..7cdd932faf6fd 100644 --- a/src/test/run-pass/ifmt.rs +++ b/src/test/run-pass/ifmt.rs @@ -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)]; diff --git a/src/test/run-pass/import-glob-0.rs b/src/test/run-pass/import-glob-0.rs index dc5c7d11769b8..5f4bf557b23f6 100644 --- a/src/test/run-pass/import-glob-0.rs +++ b/src/test/run-pass/import-glob-0.rs @@ -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::*; diff --git a/src/test/run-pass/import-glob-crate.rs b/src/test/run-pass/import-glob-crate.rs index a9a9f78943fe2..e1ca890f4fde7 100644 --- a/src/test/run-pass/import-glob-crate.rs +++ b/src/test/run-pass/import-glob-crate.rs @@ -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::*; diff --git a/src/test/run-pass/import-in-block.rs b/src/test/run-pass/import-in-block.rs index 7c0037c1e15d2..24196c225719a 100644 --- a/src/test/run-pass/import-in-block.rs +++ b/src/test/run-pass/import-in-block.rs @@ -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; diff --git a/src/test/run-pass/intrinsics-integer.rs b/src/test/run-pass/intrinsics-integer.rs index 88c964462e835..867e12d4139ed 100644 --- a/src/test/run-pass/intrinsics-integer.rs +++ b/src/test/run-pass/intrinsics-integer.rs @@ -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" { diff --git a/src/test/run-pass/issue-2526-a.rs b/src/test/run-pass/issue-2526-a.rs index b10871f78d442..00323b606495d 100644 --- a/src/test/run-pass/issue-2526-a.rs +++ b/src/test/run-pass/issue-2526-a.rs @@ -11,7 +11,7 @@ // ignore-fast // aux-build:issue-2526.rs -#[feature(globs)]; +#![feature(globs)] #[allow(unused_imports)]; extern crate issue_2526; diff --git a/src/test/run-pass/item-attributes.rs b/src/test/run-pass/item-attributes.rs index 2235676441047..ae5a86c699eaf 100644 --- a/src/test/run-pass/item-attributes.rs +++ b/src/test/run-pass/item-attributes.rs @@ -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 @@ mod test_foreign_items { use std::libc; extern { - #[attr]; + #![attr] #[attr] fn rust_get_test_int() -> libc::intptr_t; diff --git a/src/test/run-pass/linkage1.rs b/src/test/run-pass/linkage1.rs index c6f672c5d34d0..4b2c98614931f 100644 --- a/src/test/run-pass/linkage1.rs +++ b/src/test/run-pass/linkage1.rs @@ -14,7 +14,7 @@ // ignore-macos // aux-build:linkage1.rs -#[feature(linkage)]; +#![feature(linkage)] extern crate other = "linkage1"; diff --git a/src/test/run-pass/logging-enabled-debug.rs b/src/test/run-pass/logging-enabled-debug.rs index b3a77aa96752f..f5db1c7b1d6e7 100644 --- a/src/test/run-pass/logging-enabled-debug.rs +++ b/src/test/run-pass/logging-enabled-debug.rs @@ -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; diff --git a/src/test/run-pass/logging-enabled.rs b/src/test/run-pass/logging-enabled.rs index 587e0b9d4c5fa..31437586897bb 100644 --- a/src/test/run-pass/logging-enabled.rs +++ b/src/test/run-pass/logging-enabled.rs @@ -11,7 +11,7 @@ // ignore-fast // exec-env:RUST_LOG=logging-enabled=info -#[feature(phase)]; +#![feature(phase)] #[phase(syntax, link)] extern crate log; diff --git a/src/test/run-pass/macro-crate-def-only.rs b/src/test/run-pass/macro-crate-def-only.rs index 2c2ffd50eae9b..75b001a71d2b6 100644 --- a/src/test/run-pass/macro-crate-def-only.rs +++ b/src/test/run-pass/macro-crate-def-only.rs @@ -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; diff --git a/src/test/run-pass/macro-export-inner-module.rs b/src/test/run-pass/macro-export-inner-module.rs index 14c6423ce40cc..d77b360336c96 100644 --- a/src/test/run-pass/macro-export-inner-module.rs +++ b/src/test/run-pass/macro-export-inner-module.rs @@ -12,7 +12,7 @@ //ignore-stage1 //ignore-fast -#[feature(phase)]; +#![feature(phase)] #[phase(syntax)] extern crate macro_export_inner_module; diff --git a/src/test/run-pass/out-of-stack.rs b/src/test/run-pass/out-of-stack.rs index d1daa1e365eca..332f00a389242 100644 --- a/src/test/run-pass/out-of-stack.rs +++ b/src/test/run-pass/out-of-stack.rs @@ -10,7 +10,7 @@ // ignore-fast -#[feature(asm)]; +#![feature(asm)] use std::io::Process; use std::os; diff --git a/src/test/run-pass/phase-use-ignored.rs b/src/test/run-pass/phase-use-ignored.rs index 2b1a74c74accd..008a04eaa4949 100644 --- a/src/test/run-pass/phase-use-ignored.rs +++ b/src/test/run-pass/phase-use-ignored.rs @@ -10,7 +10,7 @@ // ignore-fast -#[feature(phase)]; +#![feature(phase)] #[phase(syntax)] use std::mem; diff --git a/src/test/run-pass/privacy-ns.rs b/src/test/run-pass/privacy-ns.rs index c933e5bc919d2..bc7df6bb599af 100644 --- a/src/test/run-pass/privacy-ns.rs +++ b/src/test/run-pass/privacy-ns.rs @@ -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)]; diff --git a/src/test/run-pass/reexport-star.rs b/src/test/run-pass/reexport-star.rs index f6f7c9921ef02..3b7696b548aaf 100644 --- a/src/test/run-pass/reexport-star.rs +++ b/src/test/run-pass/reexport-star.rs @@ -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 diff --git a/src/test/run-pass/simd-binop.rs b/src/test/run-pass/simd-binop.rs index 85c6555d7ce18..0c2744f68387d 100644 --- a/src/test/run-pass/simd-binop.rs +++ b/src/test/run-pass/simd-binop.rs @@ -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}; diff --git a/src/test/run-pass/simd-generics.rs b/src/test/run-pass/simd-generics.rs index 7ef8913a84753..75062a462247b 100644 --- a/src/test/run-pass/simd-generics.rs +++ b/src/test/run-pass/simd-generics.rs @@ -10,7 +10,7 @@ // ignore-fast -#[feature(simd)]; +#![feature(simd)] use std::ops; diff --git a/src/test/run-pass/simd-issue-10604.rs b/src/test/run-pass/simd-issue-10604.rs index 62dce6968806a..4e3c3afc5ad8a 100644 --- a/src/test/run-pass/simd-issue-10604.rs +++ b/src/test/run-pass/simd-issue-10604.rs @@ -10,8 +10,8 @@ // ignore-fast -#[allow(experimental)]; -#[feature(simd)]; +#![allow(experimental)] +#![feature(simd)] pub fn main() { let _o = None::; diff --git a/src/test/run-pass/simd-type.rs b/src/test/run-pass/simd-type.rs index 4506a69425222..c79f285e486af 100644 --- a/src/test/run-pass/simd-type.rs +++ b/src/test/run-pass/simd-type.rs @@ -10,7 +10,7 @@ // ignore-fast feature doesn't work -#[feature(simd)]; +#![feature(simd)] #[simd] struct RGBA { diff --git a/src/test/run-pass/tag-exports.rs b/src/test/run-pass/tag-exports.rs index 2fd6be40d11fa..bc749b5d905e4 100644 --- a/src/test/run-pass/tag-exports.rs +++ b/src/test/run-pass/tag-exports.rs @@ -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::*; diff --git a/src/test/run-pass/tcp-stress.rs b/src/test/run-pass/tcp-stress.rs index 61478e3fdb49a..d18e2ac735434 100644 --- a/src/test/run-pass/tcp-stress.rs +++ b/src/test/run-pass/tcp-stress.rs @@ -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; diff --git a/src/test/run-pass/warn-ctypes-inhibit.rs b/src/test/run-pass/warn-ctypes-inhibit.rs index 30ce77153116f..9b0a234015656 100644 --- a/src/test/run-pass/warn-ctypes-inhibit.rs +++ b/src/test/run-pass/warn-ctypes-inhibit.rs @@ -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 {