diff options
| author | bors <bors@rust-lang.org> | 2014-04-04 16:01:44 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-04-04 16:01:44 -0700 |
| commit | 4cf8d8ce69c1d1d10e90b04230d4c4e8dbb67bcc (patch) | |
| tree | 61f1237167d3663ba874e2b802cd9f5dd3c57041 /src/test | |
| parent | e5f1b9f6dc9418325f83d9766c7cfab30cb48018 (diff) | |
| parent | 6d43138b75f009bfa6f0774953ef55fd91e9760a (diff) | |
| download | rust-4cf8d8ce69c1d1d10e90b04230d4c4e8dbb67bcc.tar.gz rust-4cf8d8ce69c1d1d10e90b04230d4c4e8dbb67bcc.zip | |
auto merge of #13326 : alexcrichton/rust/rollup, r=alexcrichton
Closes #13313 (Fix typo in README.md) Closes #13311 (Fix inner attribute syntax from `#[foo];` to `#![foo]`) Closes #13309 (Add stdlib docs to the Linux binary tarball.) Closes #13308 (syntax: remove obsolete mutability from ExprVec and ExprRepeat.) Closes #13306 (TrieSet should impl Set/MutableSet; add with_capacity to PriorityQueue/SmallIntMap) Closes #13303 (Register new snapshots) Closes #13274 (Added grow_fn and retain to Vec) *Issues Closed* Closes #13249
Diffstat (limited to 'src/test')
54 files changed, 69 insertions, 69 deletions
diff --git a/src/test/auxiliary/impl_privacy_xc_1.rs b/src/test/auxiliary/impl_privacy_xc_1.rs index de182c48c41..df4e0658cb8 100644 --- a/src/test/auxiliary/impl_privacy_xc_1.rs +++ b/src/test/auxiliary/impl_privacy_xc_1.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[crate_type = "lib"]; +#![crate_type = "lib"] pub struct Fish { pub x: int diff --git a/src/test/auxiliary/issue_2316_b.rs b/src/test/auxiliary/issue_2316_b.rs index 36af01fe6c6..4530fa4bc25 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 10725981a06..b0a6e0f84fc 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<T>() { diff --git a/src/test/compile-fail/import-glob-0.rs b/src/test/compile-fail/import-glob-0.rs index 973e36e494c..210a47d2d03 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 3f5127a55b8..39b18e1c445 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 246f0cb9e66..b5c0157cb5e 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 27201b76813..365a2fbe287 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 97225c863e5..f202f1bb73c 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 e2a493e75e4..91d53339648 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/attr-fn-inner.rs b/src/test/pretty/attr-fn-inner.rs index 6745a271436..65dcf900567 100644 --- a/src/test/pretty/attr-fn-inner.rs +++ b/src/test/pretty/attr-fn-inner.rs @@ -14,7 +14,7 @@ // accidentally carried over to each inner function fn main() { - #[inner_attr]; + #![inner_attr] #[outer_attr] fn f() { } diff --git a/src/test/pretty/doc-comments.rs b/src/test/pretty/doc-comments.rs index 45e242c0ca0..02d141f5163 100644 --- a/src/test/pretty/doc-comments.rs +++ b/src/test/pretty/doc-comments.rs @@ -57,5 +57,5 @@ fn f() { } fn g() { } fn h() { - #[doc = "as do inner ones"]; + #![doc = "as do inner ones"] } diff --git a/src/test/pretty/raw-str-nonexpr.rs b/src/test/pretty/raw-str-nonexpr.rs index 026293e7524..b76591048ce 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 77177c8fcb8..a67ab3d2efc 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 98d7d5cf437..385bc145204 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 67f9f5a168f..3b5e27027b4 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 352e0f65644..b94045e5d12 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 eb705b8d8a0..cde78da3f61 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 6f412f01bb9..e30498bb3c1 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 a7b8297487d..ff82ff62a59 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 1e26ce0c4f3..1def436b4de 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 1bf601f71b4..5180ac68482 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 ac8d361bf5a..ea2ffb8dcf8 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 a6f118d77fa..54687c03da5 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 6eeefabcf7c..eb25d82e549 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 96c98a03720..5615089dcdc 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 11d4321b3e9..0b5502aa330 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 2f6b87f26a7..de2630d1ca9 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 6c1b2f4653a..10976c5c612 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 8a2a00f5638..460846ef31c 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 3d8e7608788..e4f037e4563 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 7e9afc4de56..7cdd932faf6 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 dc5c7d11769..5f4bf557b23 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 a9a9f78943f..e1ca890f4fd 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 7c0037c1e15..24196c22571 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 88c964462e8..867e12d4139 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 b10871f78d4..00323b60649 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 22356764410..ae5a86c699e 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 c6f672c5d34..4b2c9861493 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 b3a77aa9675..f5db1c7b1d6 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 587e0b9d4c5..31437586897 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 2c2ffd50eae..75b001a71d2 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 14c6423ce40..d77b360336c 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/method-attributes.rs b/src/test/run-pass/method-attributes.rs index db7440738da..87c43da9ebc 100644 --- a/src/test/run-pass/method-attributes.rs +++ b/src/test/run-pass/method-attributes.rs @@ -22,12 +22,12 @@ trait frobable { impl frobable for int { #[frob_attr1] fn frob(&self) { - #[frob_attr2]; + #![frob_attr2] } #[defrob_attr1] fn defrob(&self) { - #[defrob_attr2]; + #![defrob_attr2] } } diff --git a/src/test/run-pass/out-of-stack.rs b/src/test/run-pass/out-of-stack.rs index 71fde866703..00861bd9b21 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 2b1a74c74ac..008a04eaa49 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 c933e5bc919..bc7df6bb599 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 f6f7c9921ef..3b7696b548a 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 85c6555d7ce..0c2744f6838 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 7ef8913a847..75062a46224 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 62dce696880..4e3c3afc5ad 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::<std::unstable::simd::i32x4>; diff --git a/src/test/run-pass/simd-type.rs b/src/test/run-pass/simd-type.rs index 4506a694252..c79f285e486 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 2fd6be40d11..bc749b5d905 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 61478e3fdb4..d18e2ac7354 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 30ce7715311..9b0a2340156 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 { |
