]> git.lizzy.rs Git - rust.git/commitdiff
Convert most code to new inner attribute syntax.
authorBrian Anderson <banderson@mozilla.com>
Sat, 22 Mar 2014 01:05:05 +0000 (18:05 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 29 Mar 2014 00:12:21 +0000 (17:12 -0700)
Closes #2569

327 files changed:
src/compiletest/compiletest.rs
src/libarena/lib.rs
src/libcollections/bitv.rs
src/libcollections/lib.rs
src/libcollections/priority_queue.rs
src/libcollections/smallintmap.rs
src/libflate/lib.rs
src/libfourcc/lib.rs
src/libgetopts/lib.rs
src/libglob/lib.rs
src/libgreen/lib.rs
src/libgreen/macros.rs
src/libhexfloat/lib.rs
src/liblog/lib.rs
src/liblog/macros.rs
src/libnative/lib.rs
src/libnum/complex.rs
src/libnum/lib.rs
src/librand/lib.rs
src/librustc/back/target_strs.rs
src/librustc/front/test.rs
src/librustc/lib.rs
src/librustc/lib/llvm.rs
src/librustc/metadata/common.rs
src/librustc/metadata/creader.rs
src/librustc/metadata/csearch.rs
src/librustc/metadata/cstore.rs
src/librustc/metadata/decoder.rs
src/librustc/metadata/encoder.rs
src/librustc/metadata/filesearch.rs
src/librustc/metadata/tydecode.rs
src/librustc/metadata/tyencode.rs
src/librustc/middle/astencode.rs
src/librustc/middle/borrowck/mod.rs
src/librustc/middle/check_match.rs
src/librustc/middle/const_eval.rs
src/librustc/middle/freevars.rs
src/librustc/middle/lint.rs
src/librustc/middle/mem_categorization.rs
src/librustc/middle/resolve.rs
src/librustc/middle/trans/_match.rs
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/cabi_arm.rs
src/librustc/middle/trans/cabi_mips.rs
src/librustc/middle/trans/cabi_x86_64.rs
src/librustc/middle/trans/common.rs
src/librustc/middle/trans/expr.rs
src/librustc/middle/trans/intrinsic.rs
src/librustc/middle/trans/macros.rs
src/librustc/middle/trans/tvec.rs
src/librustc/middle/trans/type_.rs
src/librustc/middle/trans/type_of.rs
src/librustc/middle/ty.rs
src/librustc/middle/typeck/check/_match.rs
src/librustc/middle/typeck/infer/macros.rs
src/librustc/middle/typeck/infer/mod.rs
src/librustc/middle/typeck/mod.rs
src/librustc/util/common.rs
src/librustdoc/flock.rs
src/librustdoc/html/markdown.rs
src/librustdoc/lib.rs
src/librustuv/homing.rs
src/librustuv/lib.rs
src/librustuv/macros.rs
src/librustuv/queue.rs
src/librustuv/uvll.rs
src/libsemver/lib.rs
src/libserialize/ebml.rs
src/libserialize/json.rs
src/libserialize/lib.rs
src/libstd/cleanup.rs
src/libstd/cmp.rs
src/libstd/comm/select.rs
src/libstd/fmt/rt.rs
src/libstd/gc.rs
src/libstd/hash/mod.rs
src/libstd/intrinsics.rs
src/libstd/io/extensions.rs
src/libstd/io/mod.rs
src/libstd/io/net/addrinfo.rs
src/libstd/io/net/ip.rs
src/libstd/io/net/tcp.rs
src/libstd/io/net/unix.rs
src/libstd/io/pipe.rs
src/libstd/io/process.rs
src/libstd/io/test.rs
src/libstd/lib.rs
src/libstd/libc.rs
src/libstd/macros.rs
src/libstd/mem.rs
src/libstd/num/cmath.rs
src/libstd/num/f32.rs
src/libstd/num/f64.rs
src/libstd/num/float_macros.rs
src/libstd/num/i16.rs
src/libstd/num/i32.rs
src/libstd/num/i64.rs
src/libstd/num/i8.rs
src/libstd/num/int.rs
src/libstd/num/int_macros.rs
src/libstd/num/mod.rs
src/libstd/num/strconv.rs
src/libstd/num/u16.rs
src/libstd/num/u32.rs
src/libstd/num/u64.rs
src/libstd/num/u8.rs
src/libstd/num/uint.rs
src/libstd/num/uint_macros.rs
src/libstd/os.rs
src/libstd/path/windows.rs
src/libstd/raw.rs
src/libstd/reflect.rs
src/libstd/repr.rs
src/libstd/rt/backtrace.rs
src/libstd/rt/bookkeeping.rs
src/libstd/rt/libunwind.rs
src/libstd/rt/local_ptr.rs
src/libstd/rt/macros.rs
src/libstd/rt/mod.rs
src/libstd/rt/thread.rs
src/libstd/rt/thread_local_storage.rs
src/libstd/slice.rs
src/libstd/str.rs
src/libstd/sync/atomics.rs
src/libstd/sync/mpmc_bounded_queue.rs
src/libstd/tuple.rs
src/libstd/unicode.rs
src/libstd/unstable/mod.rs
src/libstd/unstable/mutex.rs
src/libstd/unstable/simd.rs
src/libsync/comm.rs
src/libsync/future.rs
src/libsync/lib.rs
src/libsync/task_pool.rs
src/libsyntax/lib.rs
src/libsyntax/parse/attr.rs
src/libsyntax/parse/parser.rs
src/libterm/lib.rs
src/libterm/terminfo/parser/compiled.rs
src/libtest/lib.rs
src/libtest/stats.rs
src/libtime/lib.rs
src/liburl/lib.rs
src/libuuid/lib.rs
src/libworkcache/lib.rs
src/test/auxiliary/struct_variant_xc_aux.rs
src/test/compile-fail/asm-in-bad-modifier.rs
src/test/compile-fail/asm-misplaced-option.rs
src/test/compile-fail/asm-out-assign-imm.rs
src/test/compile-fail/asm-out-no-modifier.rs
src/test/compile-fail/asm-out-read-uninit.rs
src/test/compile-fail/attr-bad-crate-attr.rc
src/test/compile-fail/auto-ref-slice-plus-ref.rs
src/test/compile-fail/autoderef-full-lval.rs
src/test/compile-fail/bad-mid-path-type-params.rs
src/test/compile-fail/borrowck-lend-flow-match.rs
src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs
src/test/compile-fail/borrowck-loan-rcvr.rs
src/test/compile-fail/borrowck-move-subcomponent.rs
src/test/compile-fail/borrowck-report-with-custom-diagnostic.rs
src/test/compile-fail/box-static-bound.rs
src/test/compile-fail/check-static-values-constraints.rs
src/test/compile-fail/cleanup-rvalue-scopes-cf.rs
src/test/compile-fail/deriving-primitive.rs
src/test/compile-fail/deriving-span-Clone-enum-struct-variant.rs
src/test/compile-fail/deriving-span-Clone-enum.rs
src/test/compile-fail/deriving-span-Clone-struct.rs
src/test/compile-fail/deriving-span-Clone-tuple-struct.rs
src/test/compile-fail/deriving-span-Default-struct.rs
src/test/compile-fail/deriving-span-Default-tuple-struct.rs
src/test/compile-fail/deriving-span-Eq-enum-struct-variant.rs
src/test/compile-fail/deriving-span-Eq-enum.rs
src/test/compile-fail/deriving-span-Eq-struct.rs
src/test/compile-fail/deriving-span-Eq-tuple-struct.rs
src/test/compile-fail/deriving-span-Hash-enum-struct-variant.rs
src/test/compile-fail/deriving-span-Hash-enum.rs
src/test/compile-fail/deriving-span-Hash-struct.rs
src/test/compile-fail/deriving-span-Hash-tuple-struct.rs
src/test/compile-fail/deriving-span-Ord-enum-struct-variant.rs
src/test/compile-fail/deriving-span-Ord-enum.rs
src/test/compile-fail/deriving-span-Ord-struct.rs
src/test/compile-fail/deriving-span-Ord-tuple-struct.rs
src/test/compile-fail/deriving-span-Rand-enum-struct-variant.rs
src/test/compile-fail/deriving-span-Rand-enum.rs
src/test/compile-fail/deriving-span-Rand-struct.rs
src/test/compile-fail/deriving-span-Rand-tuple-struct.rs
src/test/compile-fail/deriving-span-Show-enum-struct-variant.rs
src/test/compile-fail/deriving-span-Show-enum.rs
src/test/compile-fail/deriving-span-Show-struct.rs
src/test/compile-fail/deriving-span-Show-tuple-struct.rs
src/test/compile-fail/deriving-span-TotalEq-enum-struct-variant.rs
src/test/compile-fail/deriving-span-TotalEq-enum.rs
src/test/compile-fail/deriving-span-TotalEq-struct.rs
src/test/compile-fail/deriving-span-TotalEq-tuple-struct.rs
src/test/compile-fail/deriving-span-TotalOrd-enum-struct-variant.rs
src/test/compile-fail/deriving-span-TotalOrd-enum.rs
src/test/compile-fail/deriving-span-TotalOrd-struct.rs
src/test/compile-fail/deriving-span-TotalOrd-tuple-struct.rs
src/test/compile-fail/deriving-span-Zero-struct.rs
src/test/compile-fail/deriving-span-Zero-tuple-struct.rs
src/test/compile-fail/drop-on-non-struct.rs
src/test/compile-fail/dup-struct-enum-struct-variant.rs
src/test/compile-fail/gated-bad-feature.rs
src/test/compile-fail/gated-default-type-param-usage.rs
src/test/compile-fail/gated-non-ascii-idents.rs
src/test/compile-fail/generic-impl-less-params-with-defaults.rs
src/test/compile-fail/generic-impl-more-params-with-defaults.rs
src/test/compile-fail/generic-non-trailing-defaults.rs
src/test/compile-fail/generic-type-less-params-with-defaults.rs
src/test/compile-fail/generic-type-more-params-with-defaults.rs
src/test/compile-fail/generic-type-params-forward-mention.rs
src/test/compile-fail/generic-type-params-name-repr.rs
src/test/compile-fail/glob-resolve1.rs
src/test/compile-fail/hygienic-label-1.rs
src/test/compile-fail/hygienic-label-2.rs
src/test/compile-fail/hygienic-label-3.rs
src/test/compile-fail/hygienic-label-4.rs
src/test/compile-fail/invalid-crate-type.rs
src/test/compile-fail/issue-1697.rs
src/test/compile-fail/issue-2063-resource.rs
src/test/compile-fail/issue-2150.rs
src/test/compile-fail/issue-3668.rs
src/test/compile-fail/issue-3763.rs
src/test/compile-fail/issue-4366-2.rs
src/test/compile-fail/issue-4366.rs
src/test/compile-fail/issue-5060-fail.rs
src/test/compile-fail/issue-6804.rs
src/test/compile-fail/issue-7061.rs
src/test/compile-fail/issue-7246.rs
src/test/compile-fail/issue-7364.rs
src/test/compile-fail/issue-897-2.rs
src/test/compile-fail/kindck-copy.rs
src/test/compile-fail/kindck-destructor-owned.rs
src/test/compile-fail/kindck-nonsendable-1.rs
src/test/compile-fail/linkage2.rs
src/test/compile-fail/linkage3.rs
src/test/compile-fail/lint-allocation.rs
src/test/compile-fail/lint-change-warnings.rs
src/test/compile-fail/lint-ctypes-enum.rs
src/test/compile-fail/lint-ctypes.rs
src/test/compile-fail/lint-dead-code-1.rs
src/test/compile-fail/lint-dead-code-2.rs
src/test/compile-fail/lint-dead-code-3.rs
src/test/compile-fail/lint-deprecated-owned-vector.rs
src/test/compile-fail/lint-heap-memory.rs
src/test/compile-fail/lint-impl-fn.rs
src/test/compile-fail/lint-managed-heap-memory.rs
src/test/compile-fail/lint-misplaced-attr.rs
src/test/compile-fail/lint-missing-doc.rs
src/test/compile-fail/lint-non-camel-case-types.rs
src/test/compile-fail/lint-non-uppercase-statics.rs
src/test/compile-fail/lint-obsolete-attr.rs
src/test/compile-fail/lint-owned-heap-memory.rs
src/test/compile-fail/lint-qualification.rs
src/test/compile-fail/lint-raw-ptr-deriving.rs
src/test/compile-fail/lint-stability.rs
src/test/compile-fail/lint-type-limits.rs
src/test/compile-fail/lint-type-overflow.rs
src/test/compile-fail/lint-unknown-attr.rs
src/test/compile-fail/lint-unknown-feature.rs
src/test/compile-fail/lint-unnecessary-casts.rs
src/test/compile-fail/lint-unnecessary-parens.rs
src/test/compile-fail/lint-unsafe-block.rs
src/test/compile-fail/lint-unused-import-tricky-globs.rs
src/test/compile-fail/lint-unused-import-tricky-names.rs
src/test/compile-fail/lint-unused-imports.rs
src/test/compile-fail/lint-unused-mut-self.rs
src/test/compile-fail/lint-unused-mut-variables.rs
src/test/compile-fail/lint-unused-unsafe.rs
src/test/compile-fail/lint-uppercase-variables.rs
src/test/compile-fail/lint-visible-private-types.rs
src/test/compile-fail/liveness-dead.rs
src/test/compile-fail/liveness-return-last-stmt-semi.rs
src/test/compile-fail/liveness-unused.rs
src/test/compile-fail/macro-crate-unexported-macro.rs
src/test/compile-fail/macro-crate-unknown-crate.rs
src/test/compile-fail/macro-incomplete-parse.rs
src/test/compile-fail/macro-inner-attributes.rs
src/test/compile-fail/macro-outer-attributes.rs
src/test/compile-fail/macros-nonfatal-errors.rs
src/test/compile-fail/match-static-const-lc.rs
src/test/compile-fail/moves-based-on-type-exprs.rs
src/test/compile-fail/no-implicit-prelude.rs
src/test/compile-fail/no-send-res-ports.rs
src/test/compile-fail/no_crate_type.rs
src/test/compile-fail/occurs-check.rs
src/test/compile-fail/once-cant-call-twice-on-heap.rs
src/test/compile-fail/once-cant-call-twice-on-stack.rs
src/test/compile-fail/once-fn-subtyping.rs
src/test/compile-fail/phase-syntax-doesnt-resolve.rs
src/test/compile-fail/pinned-deep-copy.rs
src/test/compile-fail/privacy-ns1.rs
src/test/compile-fail/privacy-ns2.rs
src/test/compile-fail/privacy1.rs
src/test/compile-fail/privacy2.rs
src/test/compile-fail/privacy3.rs
src/test/compile-fail/privacy4.rs
src/test/compile-fail/regions-infer-borrow-scope-too-big.rs
src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs
src/test/compile-fail/regions-infer-invariance-due-to-mutability-3.rs
src/test/compile-fail/regions-infer-invariance-due-to-mutability-4.rs
src/test/compile-fail/regions-infer-paramd-indirect.rs
src/test/compile-fail/simd-experimental.rs
src/test/compile-fail/simd-type.rs
src/test/compile-fail/static-assert.rs
src/test/compile-fail/static-assert2.rs
src/test/compile-fail/static-region-bound.rs
src/test/compile-fail/std-uncopyable-atomics.rs
src/test/compile-fail/struct-like-enum-nonexhaustive.rs
src/test/compile-fail/syntax-extension-fourcc-bad-len.rs
src/test/compile-fail/syntax-extension-fourcc-invalid-endian.rs
src/test/compile-fail/syntax-extension-fourcc-non-ascii-str.rs
src/test/compile-fail/syntax-extension-fourcc-non-literal.rs
src/test/compile-fail/syntax-extension-fourcc-unsupported-literal.rs
src/test/compile-fail/syntax-extension-hexfloat-bad-lits.rs
src/test/compile-fail/syntax-extension-hexfloat-bad-types.rs
src/test/compile-fail/terr-sorts.rs
src/test/compile-fail/trace_macros-format.rs
src/test/compile-fail/trait-impl-method-mismatch.rs
src/test/compile-fail/unique-unique-kind.rs
src/test/compile-fail/unique-vec-res.rs
src/test/compile-fail/unreachable-code.rs
src/test/compile-fail/unsafe-around-compiler-generated-unsafe.rs
src/test/compile-fail/unsendable-class.rs
src/test/compile-fail/unused-result.rs
src/test/compile-fail/warn-foreign-int-types.rs
src/test/run-pass/macro-meta-items.rs

index 6c70362dbb336ab3ef33d92b9406931059950842..1491555fea08c37aed84136930b290cd8d008a9f 100644 (file)
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_type = "bin"];
-#[feature(phase)];
+#![crate_type = "bin"]
+#![feature(phase)]
 
-#[allow(non_camel_case_types)];
-#[deny(warnings)];
+#![allow(non_camel_case_types)]
+#![deny(warnings)]
 
 extern crate test;
 extern crate getopts;
index 49340008ce88dde9abe49d59a7dfada2db442d33..cd857afb5c40fd359c9a0f13e020d0b648ae6d25 100644 (file)
 //! of individual objects while the arena itself is still alive. The benefit
 //! of an arena is very fast allocation; just a pointer bump.
 
-#[crate_id = "arena#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[allow(missing_doc)];
-#[feature(managed_boxes)];
+#![crate_id = "arena#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![allow(missing_doc)]
+#![feature(managed_boxes)]
 
 extern crate collections;
 
index 7075e47bddf7b05ef8682eacb8c2acc83e97a521..8a78e4fde75bda12b93d6926c13cb697401286f5 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 
 use std::cmp;
index fba85b0523127d0148376bd8aac8f229bfd686ca..a83804828e8b51ede4adbe25e542df2d769bbe55 100644 (file)
  * Collection types.
  */
 
-#[crate_id = "collections#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
+#![crate_id = "collections#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
 
-#[feature(macro_rules, managed_boxes, default_type_params, phase)];
+#![feature(macro_rules, managed_boxes, default_type_params, phase)]
 
 extern crate rand;
 
index 65ccfe3ff7080fd9882b56dc0bb37a913bba5f00..3d2f260d3809cd881ab7c53aaec96294e36ddebf 100644 (file)
@@ -10,7 +10,7 @@
 
 //! A priority queue implemented with a binary heap
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use std::clone::Clone;
 use std::mem::{move_val_init, init, replace, swap};
index 64be1b92e262f341a856393b532e0fbb283839fc..fb7921b315ff5cdf6c4ca55495868dc985587b65 100644 (file)
@@ -13,7 +13,7 @@
  * are O(highest integer key).
  */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use std::iter::{Enumerate, FilterMap, Rev};
 use std::mem::replace;
index ca9475a0b233b3d1aa27e0524f7329c71d672d24..2e2224bde842cf73d2e22eab451a04f3c6429672 100644 (file)
 
 */
 
-#[crate_id = "flate#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(phase)];
-#[deny(deprecated_owned_vector)];
+#![crate_id = "flate#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(phase)]
+#![deny(deprecated_owned_vector)]
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 
index 98ac0d834335d93120fc67046cc5021c2fe6d9b6..bf327c1bc2753ac39c595a717fca7394e442b261 100644 (file)
@@ -39,16 +39,16 @@ fn main() {
 
 */
 
-#[crate_id = "fourcc#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[deny(deprecated_owned_vector)];
-#[feature(macro_registrar, managed_boxes)];
+#![crate_id = "fourcc#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![deny(deprecated_owned_vector)]
+#![feature(macro_registrar, managed_boxes)]
 
 extern crate syntax;
 
index 4c6584a7d43d5d65190a3261408b9e9033c01d3f..e47e7ddec20381fbbec861e1c9ef5f78fd84c6ac 100644 (file)
 //! }
 //! ~~~
 
-#[crate_id = "getopts#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(globs, phase)];
-#[deny(missing_doc)];
-#[deny(deprecated_owned_vector)];
+#![crate_id = "getopts#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(globs, phase)]
+#![deny(missing_doc)]
+#![deny(deprecated_owned_vector)]
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 
index 9c017a27faa1fabf3b1979404910f92e74e2efd0..ec7b5b262f5ec8c27077fb3873be741f97310c21 100644 (file)
  * `glob`/`fnmatch` functions.
  */
 
-#[crate_id = "glob#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
+#![crate_id = "glob#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
 
 use std::cell::Cell;
 use std::{cmp, os, path};
index 12f2839f321218b704d2e63c0df3857662d6587b..f0e7e7fbf6df26086af96438c22cf273719404f3 100644 (file)
 //! pool.shutdown();
 //! ```
 
-#[crate_id = "green#0.10-pre"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
+#![crate_id = "green#0.10-pre"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
 
 // NB this does *not* include globs, please keep it that way.
-#[feature(macro_rules, phase)];
-#[allow(visible_private_types)];
+#![feature(macro_rules, phase)]
+#![allow(visible_private_types)]
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 #[cfg(test)] extern crate rustuv;
index ab106138ae1088bd40bf6c04dfe027f311c45bf5..599ef8d407711ed41c1140cd21d52d0c80f0df15 100644 (file)
@@ -10,7 +10,7 @@
 
 // FIXME: this file probably shouldn't exist
 
-#[macro_escape];
+#![macro_escape]
 
 use std::fmt;
 
index 1be7239337257d2a86a0111d3bfdac2796765ae2..3ed0d598dd8e0196669cba9b99264a05519e84bd 100644 (file)
@@ -36,16 +36,16 @@ fn main() {
 
 */
 
-#[crate_id = "hexfloat#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[deny(deprecated_owned_vector)];
-#[feature(macro_registrar, managed_boxes)];
+#![crate_id = "hexfloat#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![deny(deprecated_owned_vector)]
+#![feature(macro_registrar, managed_boxes)]
 
 extern crate syntax;
 
index 765b3dabd7b870c177f499c0e83c77f946278a23..8013ebe6511072a23e015024272b24cd84fc58d2 100644 (file)
@@ -105,16 +105,16 @@ fn main() {
 
 */
 
-#[crate_id = "log#0.10-pre"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[feature(macro_rules)];
-#[deny(missing_doc, deprecated_owned_vector)];
+#![crate_id = "log#0.10-pre"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![feature(macro_rules)]
+#![deny(missing_doc, deprecated_owned_vector)]
 
 extern crate sync;
 
index 1560eeebfcab25307513afe1737331c74bba7f78..e57deb77a89eec4dafe65b69d4013e9dd2a1a1d0 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Logging macros
 
-#[macro_escape];
+#![macro_escape]
 
 /// The standard logging macro
 ///
index 59b3437ad9a33968548e8d554284c2a0f1b244d0..d06ca15f30c3bd97348e0aa9391fac97a21a836d 100644 (file)
 //! }
 //! ```
 
-#[crate_id = "native#0.10-pre"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[deny(unused_result, unused_must_use)];
-#[allow(non_camel_case_types)];
+#![crate_id = "native#0.10-pre"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![deny(unused_result, unused_must_use)]
+#![allow(non_camel_case_types)]
 
 // NB this crate explicitly does *not* allow glob imports, please seriously
 //    consider whether they're needed before adding that feature here (the
index b226e773dbb880f6a9f87f44b0a948aa967a5116..3dcd73568c6f304735e4770bdc5ef7d6ebfb153e 100644 (file)
@@ -190,7 +190,7 @@ fn to_str_radix(&self, radix: uint) -> ~str {
 
 #[cfg(test)]
 mod test {
-    #[allow(non_uppercase_statics)];
+    #![allow(non_uppercase_statics)]
 
     use super::{Complex64, Cmplx};
     use std::num::{Zero,One,Float};
index 501ae23e27d1e73c34555647d4a5b5ec5b327691..453dd3c0834c25fec8a7226701c8705d6a8accaa 100644 (file)
@@ -8,17 +8,17 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
-#[crate_id = "num#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
+#![crate_id = "num#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
 
-#[deny(deprecated_owned_vector)];
+#![deny(deprecated_owned_vector)]
 
 extern crate rand;
 
index e405ace38670bb6a4417d0f6c75d2afd4aabe6f4..f8183b08ce9dc4729aed34e7e1923bacf772da49 100644 (file)
 ```
 */
 
-#[crate_id = "rand#0.10-pre"];
-#[license = "MIT/ASL2"];
-#[crate_type = "dylib"];
-#[crate_type = "rlib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[feature(macro_rules, managed_boxes, phase)];
+#![crate_id = "rand#0.10-pre"]
+#![license = "MIT/ASL2"]
+#![crate_type = "dylib"]
+#![crate_type = "rlib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![feature(macro_rules, managed_boxes, phase)]
 
 #[cfg(test)]
 #[phase(syntax, link)] extern crate log;
index 1528fff511310f0c9c7c539fd489a08db66564b3..f046069bc0b5aacb4a512ba2755127e60e5b1bd4 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 pub struct t {
     module_asm: ~str,
index cb6b5eefadeb520276cd2bb856a8532edd668613..14ac2143e55140d68470e857b93804604b21cd7f 100644 (file)
@@ -10,8 +10,8 @@
 
 // Code that generates a test runner to run all the tests in a crate
 
-#[allow(dead_code)];
-#[allow(unused_imports)];
+#![allow(dead_code)]
+#![allow(unused_imports)]
 
 use driver::session::Session;
 use front::config;
index ea7db3db67f47eb26a55fa6d7f6553c14f403ea8..f187ff641c23a5ff30091c07d9668f092eb56c46 100644 (file)
 
 */
 
-#[crate_id = "rustc#0.10-pre"];
-#[comment = "The Rust compiler"];
-#[license = "MIT/ASL2"];
-#[crate_type = "dylib"];
-#[crate_type = "rlib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+#![crate_id = "rustc#0.10-pre"]
+#![comment = "The Rust compiler"]
+#![license = "MIT/ASL2"]
+#![crate_type = "dylib"]
+#![crate_type = "rlib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
+      html_root_url = "http://static.rust-lang.org/doc/master")]
 
-#[allow(deprecated)];
-#[feature(macro_rules, globs, struct_variant, managed_boxes, quote,
-          default_type_params, phase)];
+#![allow(deprecated)]
+#![feature(macro_rules, globs, struct_variant, managed_boxes, quote,
+           default_type_params, phase)]
 
 extern crate flate;
 extern crate arena;
index 36ebb3d513944ed399b04339cd6456a5af435744..cfd605d33b597d71a6e1815cdd1dbbae6931f064 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_uppercase_pattern_statics)];
-#[allow(non_camel_case_types)];
+#![allow(non_uppercase_pattern_statics)]
+#![allow(non_camel_case_types)]
 
 use std::c_str::ToCStr;
 use std::cell::RefCell;
index 7b7d526411c932d709136eedc4d430b60d3bd28d..5a36a610e27eb9a1ad90cec6d2d5ae587340bfa3 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use std::cast;
 use syntax::crateid::CrateId;
index 958c6373a8c9a194d409f975b3662b95c6dd38aa..5575bb5182630b153c858b55745c25706b0d49b7 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 //! Validates all used crates and extern libraries and loads their metadata
 
index 47202feef9a161525aa385cd9178180b073be686..81ebb97760147d1fc365bef03a207fb8dbb2718f 100644 (file)
@@ -10,7 +10,7 @@
 
 // Searching for information from the cstore
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use metadata::common::*;
 use metadata::cstore;
index 02c092ca50832392e91e37ced09b46f77f0b52cc..63a385631830d1cc183ced8c82d9050a87a3930f 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 // The crate store - a central repo for information collected about external
 // crates and libraries
index f61e85f3f3f9db407fc1b5e2defa25400da25292..5e058291b4437ec257b87a4f5aae390e2f589b6b 100644 (file)
@@ -10,7 +10,7 @@
 
 // Decoding metadata from a single crate's metadata
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use back::svh::Svh;
 use metadata::cstore::crate_metadata;
index 5b47f1f56216bbb0caf01c89a779db6079b0478e..abadd4aedb11d5fce711e501b0c7330c4f8b22a3 100644 (file)
@@ -10,8 +10,8 @@
 
 // Metadata encoding
 
-#[allow(unused_must_use)]; // everything is just a MemWriter, can't fail
-#[allow(non_camel_case_types)];
+#![allow(unused_must_use)] // everything is just a MemWriter, can't fail
+#![allow(non_camel_case_types)]
 
 use back::svh::Svh;
 use metadata::common::*;
index 7aed0e5b7f4093ba5414be90d2ae54f1827414e8..8bb4942e06fd5471df2eda95f04f88ebf2b6d4e9 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use std::cell::RefCell;
 use std::os;
index d0d79093cabce2e5a3c8286febc60d6291bbdf67..7ff36f13b75b95993b6b0603f6918e156fb7132a 100644 (file)
@@ -14,7 +14,7 @@
 // tjc note: Would be great to have a `match check` macro equivalent
 // for some of these
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use middle::ty;
 
index e2c25a2536608dbb9bf714b36f0d9d90c1bbb44c..446e42224ddd3d41378efc5ea87184861e545be5 100644 (file)
@@ -10,8 +10,8 @@
 
 // Type encoding
 
-#[allow(unused_must_use)]; // as with encoding, everything is a no-fail MemWriter
-#[allow(non_camel_case_types)];
+#![allow(unused_must_use)] // as with encoding, everything is a no-fail MemWriter
+#![allow(non_camel_case_types)]
 
 use std::cell::RefCell;
 use collections::HashMap;
index fd72a5f838a6e9463ca01e9fe415bc9c52f4861c..8873f1cfd3346e40003301df893e9e349808e5e2 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 // FIXME: remove this after snapshot, and Results are handled
-#[allow(unused_must_use)];
+#![allow(unused_must_use)]
 
 use c = metadata::common;
 use cstore = metadata::cstore;
index d7d936a704893860cef1a74e4da88cc18affb3d5..30b965082ca0f53953fa24bfe5144fcad76f4986 100644 (file)
@@ -10,7 +10,7 @@
 
 /*! See doc.rs for a thorough explanation of the borrow checker */
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use mc = middle::mem_categorization;
 use middle::ty;
index 12c22edcd2ec9f3c68450a86b316cddd1eef89b1..2c2fe87c9bed1816ae928245a6e97fec3a7a7950 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use middle::const_eval::{compare_const_vals, lookup_const_by_id};
 use middle::const_eval::{eval_const_expr, const_val, const_bool, const_float};
index 8d7cff98f42befdb9912939f7ab5b4214ad8d690..7fadfff21d119bb95223e5024c66d85f95fffa51 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use metadata::csearch;
 use middle::astencode;
index 84a3bb525af95468d43edd7fc9c6ecaaaf1bebe4..c2ea2f4596442da887b9fb4b5e7b46b42ea1ced1 100644 (file)
@@ -11,7 +11,7 @@
 // A pass that annotates for each loops and functions with the free
 // variables that they contain.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use middle::resolve;
 use middle::ty;
index a0f52021b6e4a8c4339663038ca03d2235019b95..4a9b990feb39feb2c576ca6179538c8fde29648a 100644 (file)
@@ -33,7 +33,7 @@
 //! modify the Context visitor appropriately. If you're adding lints from the
 //! Context itself, span_lint should be used instead of add_lint.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use driver::session;
 use metadata::csearch;
index 1eb6ab4a8b889064a78b9521e69eb3fe492a7f6c..acccbe164c35e0ec36dc362b00e9349e1355fea5 100644 (file)
@@ -60,7 +60,7 @@
  * tied to `x`. The type of `x'` will be a borrowed pointer.
  */
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use middle::ty;
 use middle::typeck;
index d86e05395b4c8b5a218ed6dd9ac948fb05c0542b..0f283ca2f897e3aa55dfbb82ca70c0032af624aa 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use driver::session::Session;
 use metadata::csearch;
index 317d5e4e67225a912b855557a00c213554c3d1bc..6e692443300f5a0251e269495cb2169d117d48fb 100644 (file)
  *
  */
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use back::abi;
 use driver::session::FullDebugInfo;
index a81301f4f3e6db4633aa4a703554a95256b249f0..f1aa40fac59cb31f0082f1728a623d7bc55cdf12 100644 (file)
@@ -23,7 +23,7 @@
 //     but one TypeRef corresponds to many `ty::t`s; for instance, tup(int, int,
 //     int) and rec(x=int, y=int, z=int) will have the same TypeRef.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use back::link::{mangle_exported_name};
 use back::{link, abi};
index 5dc9a915746064625755054e49b0657586178aa3..ee2c6454aeedbc6c71f1dc98ac6b4d01d7dcfcbd 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_uppercase_pattern_statics)];
+#![allow(non_uppercase_pattern_statics)]
 
 use lib::llvm::{llvm, Integer, Pointer, Float, Double, Struct, Array};
 use lib::llvm::StructRetAttribute;
index a373207585595bb64d800c8ced6debd545e1dd4b..cbcecb2220dc005695424ec86298d4c526fb89b9 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_uppercase_pattern_statics)];
+#![allow(non_uppercase_pattern_statics)]
 
 use std::libc::c_uint;
 use std::cmp;
index dbb258ea3997cd217ff4624f87a3ed69b6bcc3db..0ed87ef8092ea0cbbb25c60e88806c79d09bd5c6 100644 (file)
@@ -11,7 +11,7 @@
 // The classification code for the x86_64 ABI is taken from the clay language
 // https://github.com/jckarter/clay/blob/master/compiler/src/externals.cpp
 
-#[allow(non_uppercase_pattern_statics)];
+#![allow(non_uppercase_pattern_statics)]
 
 use lib::llvm::{llvm, Integer, Pointer, Float, Double};
 use lib::llvm::{Struct, Array, Attribute};
index 78700bab3f24d55a81bd3f1c6b75898fe22a5464..86413406ba561a339225e340f11fcfd0b442a1ab 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 //! Code that is useful in various trans modules.
 
index 5baf405620646103b6556b6640c304e713c8e496..f1cd46923d71d433f805a763e145f4a56addf600 100644 (file)
@@ -31,7 +31,7 @@
  * See doc.rs for more comments.
  */
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use back::abi;
 use lib::llvm::{ValueRef, llvm};
index 9618d082068880e67d09a8003326a035545a0f09..95c0b08d400eac12b1537b1a523b0d7336943f97 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_uppercase_pattern_statics)];
+#![allow(non_uppercase_pattern_statics)]
 
 use arena::TypedArena;
 use lib::llvm::{SequentiallyConsistent, Acquire, Release, Xchg};
index 938484fd44cebfb3cf925086efabc4a8d5fcb25b..313280cb7a8cc7eddb52e9f07167c65e6da937c1 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
+#![macro_escape]
 
 macro_rules! unpack_datum(
     ($bcx: ident, $inp: expr) => (
index 1a54c25e364080065351c57dbe33002f5b0539f0..c30dde3a1e2fb86c2a921c21469ca15723814d3e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use back::abi;
 use lib;
index 7155c73c0026e114caf648a815affc51ced563ce..ca6c0afc8b5e0c890f9f1d00f4d4679cb2ec52a1 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_uppercase_pattern_statics)];
+#![allow(non_uppercase_pattern_statics)]
 
 use lib::llvm::{llvm, TypeRef, Bool, False, True, TypeKind};
 use lib::llvm::{Float, Double, X86_FP80, PPC_FP128, FP128};
index 684a6624c5e1a7262ec1dbacc1e028d5e00dd090..a78520c8f6bfd7ab86d9e96a50aefc14f4e8daec 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use middle::trans::adt;
 use middle::trans::common::*;
index 3ec928d5f46691939da6e289870229fbfd25dff9..a86348947f1381bafa3d5be0942c35142ffc6747 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use back::svh::Svh;
 use driver::session::Session;
index 9518e16d269e9d9a36eb4aa7140fa10c063ac819..a4b78bc3db2cc07b87b2658f372e9e720d22c82d 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use middle::pat_util::{PatIdMap, pat_id_map, pat_is_binding, pat_is_const};
 use middle::ty;
index 306f124be3c8f8f7d53747f22779b9f1d0a775fe..d3e81f07f7dc1236a648129b2518e4a71aee58ec 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
+#![macro_escape]
 
 macro_rules! if_ok(
     ($inp: expr) => (
index a6baf9ef7bf9b9207b3bea8713c9d9fdc8e4ff3e..8084b712e5330deaa74d2eb908d69e7dd7e55041 100644 (file)
@@ -10,7 +10,7 @@
 
 /*! See doc.rs for documentation */
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 pub use middle::ty::IntVarValue;
 pub use middle::typeck::infer::resolve::resolve_and_force_all_but_regions;
index 67db5b7f39620f12c220e1b3478d384bb4a70cca..e68bb70fc9adb684af28ef51bcdac6e152750b03 100644 (file)
@@ -59,7 +59,7 @@
 
 */
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use driver::session;
 
index 732723fec9cd51105a71760f341285aff678202c..c264916ab42df439e0e25a3f4ca166c1f2d7dd30 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use syntax::ast;
 use syntax::codemap::{Span};
index c1e5d66b1d214fc3560711fa1e89a39ff307bed7..c2524d2b545f787911106a094340f8b3c0b2942d 100644 (file)
@@ -14,7 +14,7 @@
 //! green/native threading. This is just a bare-bones enough solution for
 //! librustdoc, it is not production quality at all.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 pub use self::imp::Lock;
 
index b162d9d4b789567a09bcb44496f17cf60df39091..c52a6267657b377919b43bb9f4aba7dd0be8395f 100644 (file)
@@ -24,7 +24,7 @@
 //! // ... something using html
 //! ```
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use std::cast;
 use std::fmt;
index 38b3901a0eea353f8c7ce6391d2d74c1c7ead3ac..944cc08f2e37dbe35c885422b3b81e6d3a7b05e8 100644 (file)
@@ -8,13 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "rustdoc#0.10-pre"];
-#[desc = "rustdoc, the Rust documentation extractor"];
-#[license = "MIT/ASL2"];
-#[crate_type = "dylib"];
-#[crate_type = "rlib"];
+#![crate_id = "rustdoc#0.10-pre"]
+#![desc = "rustdoc, the Rust documentation extractor"]
+#![license = "MIT/ASL2"]
+#![crate_type = "dylib"]
+#![crate_type = "rlib"]
 
-#[feature(globs, struct_variant, managed_boxes, macro_rules, phase)];
+#![feature(globs, struct_variant, managed_boxes, macro_rules, phase)]
 
 extern crate syntax;
 extern crate rustc;
index 3ece7662dd57c3a1391eadc9dbd4d1aeaf7ed061..aa345ca32aa7e2424a4fdfcc79b0c1d7ebfe5112 100644 (file)
@@ -31,7 +31,7 @@
 //! This enqueueing is done with a concurrent queue from libstd, and the
 //! signalling is achieved with an async handle.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 use std::cast;
 use std::rt::local::Local;
index 41a6651cc1caba01f675990f4672d2dda9c427fb..427dd87a0a189d60e5d7fff4675c98874cd328c5 100644 (file)
 
 */
 
-#[crate_id = "rustuv#0.10-pre"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-
-#[feature(macro_rules)];
-#[deny(unused_result, unused_must_use)];
-#[allow(visible_private_types)];
+#![crate_id = "rustuv#0.10-pre"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+
+#![feature(macro_rules)]
+#![deny(unused_result, unused_must_use)]
+#![allow(visible_private_types)]
 
 #[cfg(test)] extern crate green;
 #[cfg(test)] extern crate realrustuv = "rustuv";
index 75b68e3a52885ac55c85814c282f8e104a2e7679..a51b842f139706e732c0dd58040b791233b05c58 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
+#![macro_escape]
 
 use std::fmt;
 
index e998b5ca20b300a1250ff8009949e1ce30699ca6..ad0de0b46c9cff02f165b07eb8ce9e44f5a5305e 100644 (file)
@@ -18,7 +18,7 @@
 //! event loop alive we use uv_ref and uv_unref in order to control when the
 //! async handle is active or not.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 use std::cast;
 use std::libc::{c_void, c_int};
index 25f4fb0edf8f40a32a57e2846711bc7d4259a8fc..578f90dee9aa7479fd7f01346699ae3a3a163278 100644 (file)
@@ -27,7 +27,7 @@
  * the mappings should be added in this module.
  */
 
-#[allow(non_camel_case_types)]; // C types
+#![allow(non_camel_case_types)] // C types
 
 use std::libc::{size_t, c_int, c_uint, c_void, c_char, c_double};
 use std::libc::{ssize_t, sockaddr, free, addrinfo};
index 42205207357b78159ff4a4f5cbb17c5b2b5b7714..c30c0075e355b760bff19fddf16fb9b0330db5c5 100644 (file)
 //! An example version number with all five components is
 //! `0.8.1-rc.3.0+20130922.linux`.
 
-#[crate_id = "semver#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[deny(deprecated_owned_vector)];
+#![crate_id = "semver#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![deny(deprecated_owned_vector)]
 
 use std::char;
 use std::cmp;
index cc2385665a21a207a19a3e80be812037f0a350d2..cf1720041cc4f87187729242cdfc62e43c63e957 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use std::io;
 use std::str;
index f2bdef445bd7d121fd4f835a5aadb1ead4ea7a45..59a80f0f43224dece00e447c6e1d61527bc248e0 100644 (file)
@@ -11,8 +11,8 @@
 // Rust JSON serialization library
 // Copyright (c) 2011 Google Inc.
 
-#[forbid(non_camel_case_types)];
-#[allow(missing_doc)];
+#![forbid(non_camel_case_types)]
+#![allow(missing_doc)]
 
 /*!
 JSON parsing and serialization
index 86e03aae6733ce565415c5d395e75c461f082ef9..46a635c5aafcee64981fe20c793c5368d233207e 100644 (file)
 Core encoding and decoding interfaces.
 */
 
-#[crate_id = "serialize#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(macro_rules, managed_boxes, default_type_params, phase)];
+#![crate_id = "serialize#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(macro_rules, managed_boxes, default_type_params, phase)]
 
 // test harness access
 #[cfg(test)]
index 243f7b2055f397d0a95e47a60185e76cafcb6e15..2e51931f15a1336a046bf3a4dee3e5f978f1f05c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[doc(hidden)];
+#![doc(hidden)]
 
 use ptr;
 use raw;
index e956a1cdf1d633db2c34f4898bec828e5a021923..a8d5aa6e38ee198b01fa73d75aa666008e425142 100644 (file)
@@ -20,7 +20,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 /**
 * Trait for values that can be compared for equality and inequality.
index 1b2e79e02b4187ebb1b97cef5f9c2dad19772e0b..23bbb5a56119e6fce8a5be92199ac425a664188e 100644 (file)
@@ -43,7 +43,7 @@
 //! }
 //! ```
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 use cast;
 use cell::Cell;
index 89895f305855aa027e1c8bcbd4d3d263da2f8d55..2a2515754b46c77c69e1b6046489b8ccdd0a3cbd 100644 (file)
@@ -14,8 +14,8 @@
 //! These definitions are similar to their `ct` equivalents, but differ in that
 //! these can be statically allocated and are slightly optimized for the runtime
 
-#[allow(missing_doc)];
-#[doc(hidden)];
+#![allow(missing_doc)]
+#![doc(hidden)]
 
 use fmt::parse;
 use option::Option;
index 7fb23d77f3c6cb94b90c257a5e37ba0249e3f4e0..06a864f9a10ec141997d6138d332ecf709b2410f 100644 (file)
@@ -16,7 +16,7 @@
 
 */
 
-#[allow(experimental)];
+#![allow(experimental)]
 
 use kinds::marker;
 use clone::Clone;
index dc7d5c5b9c787a68172ca5f0b1109dfc0af4ce39..5e63f59f7618806be2f7e6256a320b7a79a4b463 100644 (file)
@@ -61,7 +61,7 @@
  * ```
  */
 
-#[allow(unused_must_use)];
+#![allow(unused_must_use)]
 
 use container::Container;
 use io::Writer;
index 1da9a3a710339296415108da12420b27587c676d..988140d38d43d0ce4e0d4539842e219fe0a4d9de 100644 (file)
@@ -41,7 +41,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 // This is needed to prevent duplicate lang item definitions.
 #[cfg(test)]
index b9e933d0b14dd796248f40bebdcd0684bdf25db8..0275d9ba8d943c64b4da9239dd56a6eead0883b6 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Utility mixins that apply to all Readers and Writers
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 // FIXME: Not sure how this should be structured
 // FIXME: Iteration should probably be considered separately
index 3e193f246a82fdd24e7d85e01b44b730a4a44529..c1833e6b116aa89c086b267166f93cb92a053988 100644 (file)
@@ -208,7 +208,7 @@ fn file_product(p: &Path) -> IoResult<u32> {
 
 */
 
-#[deny(unused_must_use)];
+#![deny(unused_must_use)]
 
 use cast;
 use char::Char;
index 6e0b766a5877eb249ca0a7fc917739eb0b182f58..f16db6e76c9b9dbc5e18f239ea239521acf8b612 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use io::IoResult;
 use io::net::ip::{SocketAddr, IpAddr};
index fef4dd380e8c1e65a1efb0f4d25ea915a3772a38..8cb205ab67e7c453bc2de7ff42f3cc104b4a16e2 100644 (file)
@@ -13,7 +13,7 @@
 //! This module contains functions useful for parsing, formatting, and
 //! manipulating IP addresses.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use container::Container;
 use fmt;
index e343fdcd325650d2a0ffec34e8db0fb5627d759f..61943eb3d6fb800ec56016c8555f77c140b97932 100644 (file)
@@ -17,7 +17,7 @@
 //! A TCP connection implements the `Reader` and `Writer` traits, while the TCP
 //! listener (socket server) implements the `Listener` and `Acceptor` traits.
 
-#[deny(missing_doc)];
+#![deny(missing_doc)]
 
 use clone::Clone;
 use io::IoResult;
index 1a020f9a82052f015f6cd6437886846ba011072f..73bb6b56298267cb9abdb0db45c27e0726f9286b 100644 (file)
@@ -22,7 +22,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use prelude::*;
 
index fbf79b194456acdc91de52f65e996376c1fcb140..43b53ca95dce611d4c26989d655957ca25133c2a 100644 (file)
@@ -13,7 +13,7 @@
 //! Currently these aren't particularly useful, there only exists bindings
 //! enough so that pipes can be created to child processes.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use prelude::*;
 use io::IoResult;
index 4f4d2d793f6b0321ba4e28e68b6d6512610a17bd..0ce35018a9c6239c45b59eb001afe6f1ea327454 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Bindings for executing child processes
 
-#[deny(missing_doc)];
+#![deny(missing_doc)]
 
 use prelude::*;
 
index 6e987869238296487d964e84a4d2d9382a0abcf3..d5bd7ad24f89feb6ac7922ec15d20240882667b6 100644 (file)
@@ -10,7 +10,7 @@
 
 /*! Various utility functions useful for writing I/O tests */
 
-#[macro_escape];
+#![macro_escape]
 
 use libc;
 use os;
index 9e13d70b0ce18a339b024bf02f80648ce20eaab5..c130b89b6d455f039d53cdd56974e226f8a879f0 100644 (file)
 //!
 //!     use std::prelude::*;
 
-#[crate_id = "std#0.10-pre"];
-#[comment = "The Rust standard library"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args,
-          simd, linkage, default_type_params, phase)];
+#![crate_id = "std#0.10-pre"]
+#![comment = "The Rust standard library"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args,
+           simd, linkage, default_type_params, phase)]
 
 // Don't link to std. We are std.
-#[no_std];
+#![no_std]
 
-#[deny(missing_doc)];
+#![deny(missing_doc)]
 
 // When testing libstd, bring in libuv as the I/O backend so tests can print
 // things and all of the std::io tests have an I/O interface to run on top
index 83a95952e022717891ac2a279c84798cacec1117..a310b95a21351219928da9466ed89f4dc7af3632 100644 (file)
 * dissolved.
 */
 
-#[allow(non_camel_case_types)];
-#[allow(non_uppercase_statics)];
-#[allow(missing_doc)];
-#[allow(uppercase_variables)];
+#![allow(non_camel_case_types)]
+#![allow(non_uppercase_statics)]
+#![allow(missing_doc)]
+#![allow(uppercase_variables)]
 
 // Initial glob-exports mean that all the contents of all the modules
 // wind up exported, if you're interested in writing platform-specific code.
index d183fae3ac6ee0c2babb1f59713f51189c2387fe..9b1c5a406cf69a7ad94ac39244ffab61688c3268 100644 (file)
@@ -14,7 +14,7 @@
 //! library. Each macro is available for use when linking against the standard
 //! library.
 
-#[macro_escape];
+#![macro_escape]
 
 /// The entry point for failure of rust tasks.
 ///
index 1f0a3b5b0bdf93d9ae7027c198c3b9e3f150cd14..0e709445770d93bfcbacacb2f37e7103d95c679d 100644 (file)
@@ -13,7 +13,7 @@
 //! This module contains functions for querying the size and alignment of
 //! types, initializing and manipulating memory.
 
-#[allow(missing_doc)]; // FIXME
+#![allow(missing_doc)] // FIXME
 
 use cast;
 use ptr;
index 13c4a812ec400658e3fb5bf0a8785f0c485005f5..32864f14c9631fb9daa0dfbb3ac72c5b3c72ab96 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
-#[allow(dead_code)];
+#![allow(missing_doc)]
+#![allow(dead_code)]
 
 //! Bindings for the C math library (for basic mathematic functions)
 
index 323f24a52c31e29a791a912c9f8db1d292177731..99484f41de13de84b76aa829a3b01a3ba097458b 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for 32-bits floats (`f32` type)
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use prelude::*;
 
index fc8c5f47073af14918ce9602eb45137760c23ddd..4029e111b0860267007a835eab7c08234538d9b4 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for 64-bits floats (`f64` type)
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use prelude::*;
 
index 7c93602af118c369b59dd1663ac7cb6386db6ca5..3e403219a4fbaffdc207d8c2015ba88431a4e67f 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
-#[doc(hidden)];
+#![macro_escape]
+#![doc(hidden)]
 
 macro_rules! assert_approx_eq(
     ($a:expr, $b:expr) => ({
index 0ecb55e510608406c08f5eb170e14ac5d3b294ad..42710a8b459d089e09d23fe57907972bb5bdea00 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for signed 16-bits integers (`i16` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 0526f2c488b207979f330a1af071c7e873c3546f..69d4b0639f732af609d60f60b80068480bfb8b85 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for signed 32-bits integers (`i32` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 0c1c01dbf4ab80954b70cc827f8b0e2369f39b1c..1f7066c25db3b649e228e1d949cc4096896f671a 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for signed 64-bits integers (`i64` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 881cc46201ef577c468d3798e81e1ccd7c1c1bae..061ffddf2312e98fea2b4eb2f6b571937216c44c 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for signed 8-bits integers (`i8` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 83c9e8ea855bc0d577a6ad60ab7b87407dd3cc13..66b204ee8bdc78b95b95295e82cc482c4e78d120 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for architecture-sized signed integers (`int` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index ea62a3ec374d3b3c991442ca0e4c05a18f13c506..1d2c38f22bb175de92f9263a016ed0e5542c6d60 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
-#[doc(hidden)];
+#![macro_escape]
+#![doc(hidden)]
 
 macro_rules! int_module (($T:ty, $bits:expr) => (
 
index d09cf28357bcd92210a94fbc41409523be06b7ca..feff0e7e6c0e5321c0097331609050c8153f9994 100644 (file)
@@ -13,7 +13,7 @@
 //! These are implemented for the primitive numeric types in `std::{u8, u16,
 //! u32, u64, uint, i8, i16, i32, i64, int, f32, f64, float}`.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use clone::Clone;
 use cmp::{Eq, Ord};
index 9f9a9ec8e2e3b851d02a858edfb267b0e43b2295..dc49da415a49158a78ece6ebc2cf8f6f2b703b90 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use clone::Clone;
 use container::Container;
index d1de1ff0a723cb762e18808cdeff194c1afabf8e..ca473e9517e45cf57c4dcdbd27aca6bf24278b86 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for unsigned 16-bits integers (`u16` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 1caec67802539fe178729fe23e8017a2781555e5..2a0b9aac667af5d7c451cba1658cc1f4fe3add23 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for unsigned 32-bits integers (`u32` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index ab495834eaa5f98b14b46b22947f2af2d623facc..2cfc5da95e8baa7fe2da9e761160d0f7c4a67ddf 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for unsigned 64-bits integer (`u64` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index a0ef574f6cf2f9d46aa70894baa4c5db171a71cd..30ed13a5952b45bf5cac90d81bb5471594fa5d35 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for unsigned 8-bits integers (`u8` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 95d4a3a50be576b890e3d9db0777603dac52d84c..6751fdb5d252c5df51f67a03bbf55f5871fdc6b5 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations and constants for architecture-sized unsigned integers (`uint` type)
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 use prelude::*;
 
index 719afeb78784a64d24cc3386900d61514c20efae..ece30e72e06824f604afee7fcf3fa7e5bb5917d5 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
-#[doc(hidden)];
+#![macro_escape]
+#![doc(hidden)]
 
 macro_rules! uint_module (($T:ty, $T_SIGNED:ty, $bits:expr) => (
 
index eeebede6c5833c28be0e870c865a980ecd2c6fff..b84ba6a501c2adec80f0750a7f6de4019021b910 100644 (file)
@@ -26,7 +26,7 @@
  * to write OS-ignorant code by default.
  */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 #[cfg(target_os = "macos")]
 #[cfg(windows)]
index d488997b0c292c552acd01e07d5e8f9e002e7f54..a641787dfd15c7a94cae9a4ab818d61a06bed829 100644 (file)
@@ -637,7 +637,7 @@ pub fn rev_str_components<'a>(&'a self) -> RevStrComponents<'a> {
     /// See str_components() for details.
     pub fn components<'a>(&'a self) -> Components<'a> {
         fn convert<'a>(x: Option<&'a str>) -> &'a [u8] {
-            #[inline];
+            #![inline]
             x.unwrap().as_bytes()
         }
         self.str_components().map(convert)
@@ -647,7 +647,7 @@ fn convert<'a>(x: Option<&'a str>) -> &'a [u8] {
     /// See str_components() for details.
     pub fn rev_components<'a>(&'a self) -> RevComponents<'a> {
         fn convert<'a>(x: Option<&'a str>) -> &'a [u8] {
-            #[inline];
+            #![inline]
             x.unwrap().as_bytes()
         }
         self.rev_str_components().map(convert)
index 94ad268f512061dce4b8151cffde94bee3b00c58..d776b05bcd9de59210d545917f036c8a73f1d63d 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 //! Contains struct definitions for the layout of compiler built-in types.
 //!
index a9e70bd3c6316b9cc47e5991c5da27cada8b8ab5..183318cbfdb42347e21bf06eb9ee2eacbe4ee254 100644 (file)
@@ -14,7 +14,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use intrinsics::{Disr, Opaque, TyDesc, TyVisitor};
 use mem;
index 675250a2710089f8c23d9a7ea088267c4ef670a5..e15ca3c0320d68ba3a9100b8a957b214a8ddddde 100644 (file)
@@ -14,7 +14,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use cast::transmute;
 use char;
index 7ae2521c42352ce61e1425c4e59f58b8a247e2de..96f95622b9213dbe139cc40a05034ab18235574e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use char::Char;
 use container::Container;
index 932cd7af033d709b45c459c78ee36b4b42c774f1..9e772d8ad23850cb7920fd1d09d4975bdf668c98 100644 (file)
@@ -18,8 +18,8 @@
 //! each respective runtime to make sure that they call increment() and
 //! decrement() manually.
 
-#[experimental]; // this is a massive code smell
-#[doc(hidden)];
+#![experimental] // this is a massive code smell
+#![doc(hidden)]
 
 use sync::atomics;
 use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
index fabfa2c8a7a6fe671e57a34501770534f2487769..e9a925fb897fb27e043d6f6d9853e7d1092a3d59 100644 (file)
@@ -10,8 +10,8 @@
 
 //! Unwind library interface
 
-#[allow(non_camel_case_types)];
-#[allow(dead_code)]; // these are just bindings
+#![allow(non_camel_case_types)]
+#![allow(dead_code)] // these are just bindings
 
 use libc;
 
index 898004c665d1d9507895d5744b15f3c83a0dbe29..30068712977b695452b0094f9313d14fe33ac773 100644 (file)
@@ -15,7 +15,7 @@
 //! XXX: Add runtime checks for usage of inconsistent pointer types.
 //! and for overwriting an existing pointer.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 use cast;
 use ops::Drop;
index 3ef57710344dc06c700b834770099fa83a292dde..74675c85b96b30d2fbaa584e073cf21f614fc2e5 100644 (file)
@@ -13,7 +13,7 @@
 //! These macros call functions which are only accessible in the `rt` module, so
 //! they aren't defined anywhere outside of the `rt` module.
 
-#[macro_escape];
+#![macro_escape]
 
 macro_rules! rterrln (
     ($($arg:tt)*) => ( {
index 28f11f44054ce11dc40231a139a2f945fa1524b5..5e2f8efd2e35c08d2ebea13ae537aeb5837824f8 100644 (file)
@@ -52,7 +52,7 @@
 */
 
 // FIXME: this should not be here.
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use any::Any;
 use kinds::Send;
index 7c4bd89546943c9545b9a3b01604309908a0aee2..1802016e3b38ad76c872c799080db7823ff9de53 100644 (file)
@@ -14,7 +14,7 @@
 //! These functions operate outside of the rust runtime, creating threads
 //! which are not used for scheduling in any way.
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use cast;
 use kinds::Send;
index 40d9523cf3aace38c038180c5f2892d58a3b2e3d..2f567e91b4cdb232805614bdb7c481b8738add1c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 #[cfg(unix)]
 use libc::c_int;
index 8602c65352342c1593899a8519be6ef4cda4995a..b5055dfe8b37c036e99fc9a860df7c5a7614eaff 100644 (file)
@@ -99,7 +99,7 @@
 
 */
 
-#[warn(non_camel_case_types)];
+#![warn(non_camel_case_types)]
 
 use cast;
 use cast::transmute;
index fac4202217f49c49a89fa5f00c7751c3be2b85a0..0e640d3a66262a4ed8e9477a410f886eb5b365ad 100644 (file)
@@ -4008,7 +4008,7 @@ fn test_char_range_at_reverse_underflow() {
 
     #[test]
     fn test_add() {
-        #[allow(unnecessary_allocation)];
+        #![allow(unnecessary_allocation)]
         macro_rules! t (
             ($s1:expr, $s2:expr, $e:expr) => { {
                 let s1 = $s1;
index bca7cf259444cb0d242b62fd7770d709a40b4c8c..6cc2f85bd95429374ba9fd2e2b891c3863e06abb 100644 (file)
 //! }
 //! ```
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use intrinsics;
 use cast;
index 95f592baff0b95c1f233c121f6be0c1febc83f82..dfa962cdb80bd67c7e5787006b6f9d99a0fac1c8 100644 (file)
@@ -25,7 +25,7 @@
  * policies, either expressed or implied, of Dmitry Vyukov.
  */
 
-#[allow(missing_doc, dead_code)];
+#![allow(missing_doc, dead_code)]
 
 // http://www.1024cores.net/home/lock-free-algorithms/queues/bounded-mpmc-queue
 
index c4ce6b5ae666fe2ed82e720c8db46198b486890e..732b006b245616377bac704f014cce407e4fc96f 100644 (file)
@@ -10,7 +10,7 @@
 
 //! Operations on tuples
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use clone::Clone;
 #[cfg(not(test))] use cmp::*;
index 645db8e040b85a3134e1adafb9cdc89544950dd3..c98861a0fe76b1972c9d3d54af3688d6567806fa 100644 (file)
@@ -10,8 +10,8 @@
 
 // The following code was generated by "src/etc/unicode.py"
 
-#[allow(missing_doc)];
-#[allow(non_uppercase_statics)];
+#![allow(missing_doc)]
+#![allow(non_uppercase_statics)]
 
 fn bsearch_range_table(c: char, r: &'static [(char,char)]) -> bool {
     use cmp::{Equal, Less, Greater};
index 720bf011fa019fc274abeca8b99ae91913b148cf..ddbf650e64a97b29f5e3e6304c0306fe2b627420 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[doc(hidden)];
+#![doc(hidden)]
 
 use prelude::*;
 use libc::uintptr_t;
index 6f5ef067e891a4f8bd0e0ca3a4f37137e10a1492..eda2df487aa6419a4279875a03f45db6c9b9f86f 100644 (file)
@@ -56,7 +56,7 @@
 //! } // `lock` is deallocated here
 //! ```
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 use option::{Option, None, Some};
 use ops::Drop;
index 1029e5fdbd3592f87e312ebb0e7f252eaf3ebeb5..01200833b195d699d7f0738ed25d136499d683e7 100644 (file)
@@ -10,7 +10,7 @@
 
 //! SIMD vectors
 
-#[allow(non_camel_case_types)];
+#![allow(non_camel_case_types)]
 
 #[experimental]
 #[simd]
index 628f6459badf9bf2a0361592ac465274a5cc4500..6413dccd96c95d7499d9efc72f8c096aa0b09261 100644 (file)
@@ -14,7 +14,7 @@
 
 */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use std::comm;
 
index 8fc3dd3a460ff0d1f4c0b724b0320f1ed18e7d82..94e78729aeea6bfcf6556affe8ca26b376d1c561 100644 (file)
@@ -24,7 +24,7 @@
  * ```
  */
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use std::mem::replace;
 
index 4df644e3b23c12025e5958cd49468433c6783496..fa219009d41d5db2ba605ecd46f709c827709026 100644 (file)
  * Concurrency-enabled mechanisms and primitives.
  */
 
-#[crate_id = "sync#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(phase)];
-#[deny(missing_doc, deprecated_owned_vector)];
+#![crate_id = "sync#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(phase)]
+#![deny(missing_doc, deprecated_owned_vector)]
 
 #[cfg(test)]
 #[phase(syntax, link)] extern crate log;
index e1764f970c7d98d250a2c5bc5b9fd454b767c65a..d29e857cca656a5f0a5472272c302b837a4de073 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 /// A task pool abstraction. Useful for achieving predictable CPU
 /// parallelism.
index 4de17dc598b0ec9dd515492086731cd5563cfbc3..86795b6623c7c6b9dfa4f6c4e02d8de5cce7fe2d 100644 (file)
 
 */
 
-#[crate_id = "syntax#0.10-pre"];
-#[license = "MIT/ASL2"];
-#[crate_type = "dylib"];
-#[crate_type = "rlib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[feature(macro_rules, globs, managed_boxes, default_type_params, phase,
-          quote)];
-#[allow(deprecated)];
+#![crate_id = "syntax#0.10-pre"]
+#![license = "MIT/ASL2"]
+#![crate_type = "dylib"]
+#![crate_type = "rlib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![feature(macro_rules, globs, managed_boxes, default_type_params, phase,
+           quote)]
+#![allow(deprecated)]
 
 extern crate serialize;
 extern crate term;
index b569bb28a7dc577d275d1127c234988d921284bc..ddb6ddb64b433e64223e3e1184454c5253522700 100644 (file)
@@ -93,9 +93,8 @@ fn parse_attribute(&mut self, permit_inner: bool) -> ast::Attribute {
         };
 
         if permit_inner && self.eat(&token::SEMI) {
-            // NOTE: uncomment this after a stage0 snap
-            //self.warn("This uses the old attribute syntax. Semicolons
-            //  are not longer required.");
+            self.span_warn(span, "this inner attribute syntax is deprecated. \
+                           The new syntax is `#![foo]`, with a bang and no semicolon.");
             style = ast::AttrInner;
         }
 
index 0ae43db83158492031ec36f2df2933a572c1153e..aee843bd857060281c23ea5fe6ea87663820664e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[macro_escape];
+#![macro_escape]
 
 use abi;
 use abi::AbiSet;
@@ -811,6 +811,9 @@ pub fn bug(&mut self, m: &str) -> ! {
     pub fn warn(&mut self, m: &str) {
         self.sess.span_diagnostic.span_warn(self.span, m)
     }
+    pub fn span_warn(&mut self, sp: Span, m: &str) {
+        self.sess.span_diagnostic.span_warn(sp, m)
+    }
     pub fn span_err(&mut self, sp: Span, m: &str) {
         self.sess.span_diagnostic.span_err(sp, m)
     }
index 5ccc6bfb91e1f89f9c54ff11dc9360a3699f722a..50f2118f0c4e01c7aafe223c9fad36236d02ea06 100644 (file)
 
 //! Simple ANSI color library
 
-#[crate_id = "term#0.10-pre"];
-#[comment = "Simple ANSI color library"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
+#![crate_id = "term#0.10-pre"]
+#![comment = "Simple ANSI color library"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
 
-#[feature(macro_rules)];
-#[deny(missing_doc)];
+#![feature(macro_rules)]
+#![deny(missing_doc)]
 
 extern crate collections;
 
index 66d322e079f3583ae5684e06faa85de4a61edbcc..edaa55a66031975f169887cc5703218079ad6943 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(non_uppercase_statics)];
+#![allow(non_uppercase_statics)]
 
 //! ncurses-compatible compiled terminfo format parsing (term(5))
 
index 751dc58450f91ceeb5058581f631d96ec29af8a0..9084201fe99a311cef151ec1fff5b1019be01e5b 100644 (file)
 // running tests while providing a base that other test frameworks may
 // build off of.
 
-#[crate_id = "test#0.10-pre"];
-#[comment = "Rust internal test library only used by rustc"];
-#[license = "MIT/ASL2"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[feature(asm, macro_rules)];
-#[deny(deprecated_owned_vector)];
+#![crate_id = "test#0.10-pre"]
+#![comment = "Rust internal test library only used by rustc"]
+#![license = "MIT/ASL2"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![feature(asm, macro_rules)]
+#![deny(deprecated_owned_vector)]
 
 extern crate collections;
 extern crate getopts;
index 222aff3746519c9dad344e9788440a0b892e1008..3740967bc144cdca747a8801cd8a478e6bc9e54e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(missing_doc)];
+#![allow(missing_doc)]
 
 use std::hash::Hash;
 use std::io;
index 8b496964bc0f24ba0bacd727156108f3ef3b51c4..261e4e25aff317d95741616756900476812b8a85 100644 (file)
@@ -8,15 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "time#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(phase)];
-#[deny(deprecated_owned_vector)];
+#![crate_id = "time#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(phase)]
+#![deny(deprecated_owned_vector)]
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 extern crate serialize;
index 031c7fafa04548f9b75a5d64a89473c0aebf82ad..b729a7a69e21e0b7d019548f6e5d816a92cac963 100644 (file)
 
 //! Types/fns concerning URLs (see RFC 3986)
 
-#[crate_id = "url#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(default_type_params)];
+#![crate_id = "url#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(default_type_params)]
 
 extern crate collections;
 
index 0065c90c91a12cac92d6af752263fb7a4602a3c1..1a6b00bee562489b07e68c6f221bf218bd6623e1 100644 (file)
@@ -54,15 +54,15 @@ fn main() {
 
 */
 
-#[crate_id = "uuid#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-
-#[feature(default_type_params)];
+#![crate_id = "uuid#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+
+#![feature(default_type_params)]
 
 // test harness access
 #[cfg(test)]
index a049279c5c40b4d21851a605d80728e71f315ab0..a078a770e86d55f837dd65a23b98d5b0fb9a1a68 100644 (file)
@@ -8,15 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id = "workcache#0.10-pre"];
-#[crate_type = "rlib"];
-#[crate_type = "dylib"];
-#[license = "MIT/ASL2"];
-#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      html_root_url = "http://static.rust-lang.org/doc/master")];
-#[feature(phase)];
-#[allow(visible_private_types)];
+#![crate_id = "workcache#0.10-pre"]
+#![crate_type = "rlib"]
+#![crate_type = "dylib"]
+#![license = "MIT/ASL2"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+       html_root_url = "http://static.rust-lang.org/doc/master")]
+#![feature(phase)]
+#![allow(visible_private_types)]
 
 #[phase(syntax, link)] extern crate log;
 extern crate serialize;
index 668e5c9afb352e5db68a781f50d625e7f8383394..1bd52d1d1e2473e0b6cf3ba944152708224387b4 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[crate_id="struct_variant_xc_aux#0.1"];
-#[crate_type = "lib"];
+#![crate_id="struct_variant_xc_aux#0.1"]
+#![crate_type = "lib"]
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 
 pub enum Enum {
     Variant { arg: u8 }
index da4b0677f8f355f27eb1a7e3c944d1b081e079c2..dfd9fd698c975147423d414d1caf61be0cb8d195 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 fn foo(x: int) { println!("{}", x); }
 
index 4f973cbbe2540afeddf90dfe34e10443b0860744..36896667281ddaf3d7e8506a55319d68165eb790 100644 (file)
@@ -11,9 +11,9 @@
 // ignore-fast #[feature] doesn't work with check-fast
 // ignore-android
 
-#[feature(asm)];
+#![feature(asm)]
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 #[cfg(target_arch = "x86")]
 #[cfg(target_arch = "x86_64")]
index f183975ffe07862dc6d0077dc7ea9f2c665517a6..ae5c67c365ffd9ba6c55b4ffce758d881478370c 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 fn foo(x: int) { println!("{}", x); }
 
index 475052b637eab1d68c10a530a182b067deb2b2e6..01aa01e09ce6bbf41845d9efbb3e0fc3b281d479 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 fn foo(x: int) { println!("{}", x); }
 
index 664db071f828d083875712ca884e43d18ffd5fd2..a63a59ff423b61cff57f722fcc654b82ad3c4f18 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast #[feature] doesn't work with check-fast
-#[feature(asm)];
+#![feature(asm)]
 
 fn foo(x: int) { println!("{}", x); }
 
index 8ce20540b93b39b8c6efa585c1c276ac0d70033b..4ab07f4fa9918e14fd7a60f1cffc2d740585dc3e 100644 (file)
@@ -10,5 +10,5 @@
 
 // error-pattern: expected item
 
-#[attr = "val"];
+#![attr = "val"]
 #[attr = "val"] // Unterminated
index 8810421f6c412a03a2a131fc2899b87eac9209f1..8c8c0d9cfb6202426fd6c2ba05bbfec3842171ce 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn main() {
 
index 8ccf2a9e67585b61b351e5dc251f3aff386aac8f..ae9fe6112210b5c78311d438b0dcee8e85bd187f 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct clam {
     x: @int,
index 12e54d09de5f383804efa2ced63c1978ac233e2e..1b72e46842862402fece711c937863082d89d209 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-tidy-linelength
 
-#[no_std];
+#![no_std]
 
 struct S<T> {
     contents: T,
index 4b59df4a98f15aefa87522297985c42cc391836c..9d234e0aaa6328073ce3c9aabe13dec9aaf7ff3f 100644 (file)
@@ -10,8 +10,8 @@
 
 // ignore-pretty -- comments are unfaithfully preserved
 
-#[allow(unused_variable)];
-#[allow(dead_assignment)];
+#![allow(unused_variable)]
+#![allow(dead_assignment)]
 
 fn cond() -> bool { fail!() }
 fn link<'a>(v: &'a uint, w: &mut &'a uint) -> bool { *w = v; true }
index 9d628c1f6c750402ce798ffb260b110b543b0f81..a6063ffefd4570b437710bf65b5a9618c992021b 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct Point {
     x: int,
index dbeeb5213069b2fa8de90f8a0565403282ac62bd..2461f1ab396046b81149ff380238ed8271fee7df 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct point { x: int, y: int }
 
index 368ceb5adab4d5d3947a8e54148cddaac0f238d4..f6ca6ac42b2fe5cc6ebd61bba94928be3cf3a3b9 100644 (file)
@@ -11,7 +11,7 @@
 // Tests that the borrow checker checks all components of a path when moving
 // out.
 
-#[no_std];
+#![no_std]
 
 struct S {
   x : ~int
index 1822cd4a89231b0fbbc5f8f6c798ca0c691c71cb..82189c6b7c1f1b7fa4e1e240ec275b555b7cba66 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 fn main() {
     // Original borrow ends at end of function
     let mut x = 1u;
index 1ec5dfa2da9f20a77268dea5abd45565ebfde283..c4064c6fcace6effa4cca9cb87ee59d62ad33fa8 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn f<T>(x: T) -> @T {
     @x  //~ ERROR value may contain references
index 8ae40a74af188342f673f3d77c88c51d405acc06..f4e9521d6b65e66a763895250ef5c36fe43e59c9 100644 (file)
@@ -7,7 +7,7 @@
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 // Verifies all possible restrictions for static items values.
 
index 47b7b51b8f73ccf6fb993bfa9f37a1d312a8f604..01c6256173f03c5411436d8b2b273145c6247e12 100644 (file)
@@ -11,7 +11,7 @@
 // Test that the borrow checker prevents pointers to temporaries
 // with statement lifetimes from escaping.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 use std::ops::Drop;
 
index 0e530666a8cbf0000929322acf0d0a5645d0ab6a..7d8741c98e2e73474d7f207bd87fcd6d523ea232 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 
 use std::num::FromPrimitive;
 use std::int;
index 37560444af695cdf8bc8abb4a66cbf5bd15d98bd..7babb8ea1b9e8479fd5173dc48e95dcc8467b2fe 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 89acf95f1563e38ab96eed3c1f020311c513d1e4..65404f155f10f4dad0f496b56e963700ecf4ccbf 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 0afcfa18c73fbff49f6008b4b692192ca9cb9c7f..0ca429e07e9f65f483e4a9446ee5ecb04ea5ba5c 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index d116a791620ce2dfc1d09eb50a13037823346802..e78e59baf1b1f75c79a7ead19e21a8d9bfb17fe8 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 09afd9730fb0a94e164c13b9390485b796da0f6a..95132d9a5c7189a2bf8b597ec003a7bfccda5a40 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 4dbcc3de1fa5adaecb4dda8e6981492481f723ad..670f6e8ea5252d06d20df614ec9fbc6834b8e5d3 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 4e9dfd96c631ce74095f4c1e60c6d378642db578..9e23493e37fddd031da8384ba48f577397fab1d6 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 794c36b43d84ac051e56597635039da0f413d186..d4962c8a76b3502bf5e6f02d3e6b3524278aa8ed 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 4488e74d851f1a935c1413cd6b89bca4f24083f6..39c9c23e8f5b1e87114696bec1df214e6c494d46 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 949e1cee37a0c4298aa55f652f62e137a1cbc15d..a9a9a1b30713a12edf14350bd5c41232a6b6b673 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 1323c4daf94fee0a3d134b558f9c2d3fb8a5bd03..745ef501021714ee5cca0c52fd38707bf5ca655b 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index af78a1ace70ff2046eac374e3b0df934fa84f5c4..3cd867d118622ae36aed0fad410e547c4ab6d377 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index c8fdb0f19a5e94dc77882802025b94e7e4e08546..e26bdd8d0899d9127077dbadce3a6fa495accded 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 897483c8ada401c63e5ebbc16e5469f91cb519df..7554db6dae35619abd796335ff2ef28accdadfa4 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index a99191fd0dcbe083fb7ec950c3bcd42e61258016..900fa0dcb6cd3cbe1e2a70bf2641cd837f2acb51 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index 2be3d5c83af151c013bfec025de946febd3f9748..feb97dee79becd368087ccc1b5f39586b1f399a1 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index 5848bda1750ba2f36b8f1707a4b6d3b291c84d4a..c0396b0822e8825800b0a651919fdbfe801893fd 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index 198721e9b75b17359bc49a322c2eba1498086d98..26610d7e1fac4219aeeb38c50660aa3eecd13e26 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index 4fee8aa84e677df79b1b1464dd4814555133f13b..e1b112bb023c5508dc67924e7197754f81a54b12 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 58f8a2b44b27b913de003f3024f77185f86e96c2..746a2aac88e8cf2bee22e35106e59c336e5b68fc 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 7350f94e76b6920f90bc972d5879467777e336d9..397b2adfcc84657831b261d749ba2df8006b1eb7 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 0d7631e8e2077fd412884e548f991cc4616860bb..be6b7dcbb8f8169ec4bc2f617653164bb41db4e2 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index b3f94ff606d20fa6e94ac2f53dfe7268108d123b..d50f1c692782ccba20b235f885feb092fde5a18b 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index f3ff502c6e237bffac9c5a34a3500e7c8ceb373e..ada1abe8fbb6060b12d85bea316d07e62ef568c1 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 258efaaba0c74b7b916b41011afdbcd7eb8b231c..8d74af6ad0b8fe7683755899bca9a266b83b3ee5 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 002495389f3914b9002a7fde84d35de7afcff42e..6e421ca58f5140cf18278c57cb76fb0d0a0b777c 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 5d6d4531b40cd7c883d7c4a202bc88d13299b0ed..8880d04ce41bf09555f5595b1400566d991326ab 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index b80aa2646d2721f402ca3902c9c4c6f1bdaa1d1c..d0d8ef62f1e1624b5fab1bdfad21aebe41ddb9b9 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index 878316c4b036cd05cc094683893d96b3973fef44..53d7e0cbe3a11b7896596ae30b61427dda2f7385 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index c590a1f216498e541d76f3a354735c32c41f6aff..538ffdcd770ba47b8972a2e7f8d9015c2c13f1e3 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq)]
index d6ca5f726753129c0363ca298929e754d94feb32..d0adb542fc58ceebc6ede487f5d3206be929acc5 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq, Ord, TotalEq)]
index e53c849591412216c061332f59dd5e822c0271d1..0fc204f61014725734d572cb37f268ac0338a1e6 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq, Ord, TotalEq)]
index 8b7a9d3bea6822042103d2da18175570faa8b03a..69cf5d2d8efb71ab28d3a1347637aaa460810b54 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq, Ord, TotalEq)]
index ff13923721707c51d5b4e4de1f9cd23b80ec9ddb..230e5b7ed998900d96d32f69cedf6e1048051501 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 #[deriving(Eq, Ord, TotalEq)]
index acebdff28ff05cdbe59696f842abf61d68c9bc30..f32db20ef3fe71700222a72e767afead9cde246c 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index 64600fef2c5699b642961cc2e62b666035dd4cc9..66488b0ac66732385edd310a65b4320cac908613 100644 (file)
@@ -10,7 +10,7 @@
 
 // This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 extern crate rand;
 
 
index e955f9d3289fe18fd939fd81a3f0b5b3e081ad74..1ce6cf55ac3f3c664b7ec68cfdc7a9e8f6aac937 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 
 type Foo = Vec<u8>;
index b9eda0765f6458ba3c35198083d81a02a955ae7a..064a3b9b168be722c920abca67ac296850515ba1 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 
 enum Foo { C { a: int, b: int } }
 struct C { a: int, b: int }         //~ ERROR error: duplicate definition of type `C`
index ed4d32ada0987b3ffb1d556fb5b359fd4a1f519a..5a68afaceb93a59f3f694ea13d8a82f43ae271b5 100644 (file)
@@ -8,16 +8,16 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(
+#![feature(
     foo_bar_baz,
     foo(bar),
     foo = "baz"
-)];
+)]
 //~^^^ ERROR: malformed feature
 //~^^^ ERROR: malformed feature
 
-#[feature]; //~ ERROR: malformed feature
-#[feature = "foo"]; //~ ERROR: malformed feature
+#![feature] //~ ERROR: malformed feature
+#![feature = "foo"] //~ ERROR: malformed feature
 
-#[feature(test_removed_feature)]; //~ ERROR: feature has been removed
-#[feature(test_accepted_feature)]; //~ WARNING: feature has added
+#![feature(test_removed_feature)] //~ ERROR: feature has been removed
+#![feature(test_accepted_feature)] //~ WARNING: feature has added
index 9961a81a85a843c8555e74c51d039b7d4f68949d..4c8b5de4c864bb2f3064a86df30fc2ffcbb964bd 100644 (file)
@@ -10,7 +10,7 @@
 
 // aux-build:default_type_params_xc.rs
 
-#[deny(default_type_param_usage)];
+#![deny(default_type_param_usage)]
 
 extern crate default_type_params_xc;
 
index f37a6aa354a5fa7e0de0478f80e027066ed9009b..174554a08321dfabd5cf7bc25bcdca236b24752d 100644 (file)
@@ -10,7 +10,7 @@
 
 // ignore-fast feature doesn't work.
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 
 extern crate bäz; //~ ERROR non-ascii idents
 
index a95124239a94f523c0578d482e341b73467aca27..d6a47ffd7863b8bb65be0a2989a5fd8fb75e8745 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 struct Foo<A, B, C = (A, B)>;
 
index c6ee8a870ee5313e98e944b102cf5f5b55ff3478..b0040878d628c0eba68d001bc2ae8afd74d84234 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 struct Heap;
 
index a70a52992ddc281051235da58b1855ad7a459c3c..0b6480fc17dcc79eceb27a4daa357b47ea28ab2a 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 struct Heap;
 
index c5badee3bc5aae43324ef3a060795d10463655a5..d1fa40bd22cd5fa67e8b5fe026d47e2bab68d383 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 struct Heap;
 
index b4c80bc1e3d13ebca08911bb74a8ba0c097b3f1a..2f3f91a9c3d715cc0f7b9ca4e6b4078da95d8c4e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 struct Heap;
 
index 003ffdc8cc00dcb8ad02bb0b63f6e06bd7eac3b0..424a92d74eec8b2bc86c2eb4bfc67a5ac1c1645c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 // Ensure that we get an error and not an ICE for this problematic case.
 struct Foo<T = Option<U>, U = bool>;
index 066bbc38e1a5f133681331dd04f1b028903010bc..e3d624e9452bae41de8e05b875b2dfe5cc209751 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(default_type_params)];
+#![feature(default_type_params)]
 
 struct A;
 struct B;
index 7363fb6d0b2df27b429be1363821638aee26703e..aae5e0194a1d1d025a7add145aed42afeb5ecbd3 100644 (file)
@@ -10,7 +10,7 @@
 
 // Make sure that globs only bring in public things.
 
-#[feature(globs)];
+#![feature(globs)]
 
 use bar::*;
 
index d2720bc4570504f5edc5710d1452c6d2709a17c3..010cde769d7551d6663687511c0c4763eba9a471 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! foo {
     () => { break 'x; }
index c97317217fc5b1425e125a06313a8005ae86697f..78d8fce38d5a67ce19a244da9dd998ab164d1f42 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! foo {
     ($e: expr) => { 'x: loop { $e } }
index d5284f5766e0e4b5d694dfa70e1432de36abd97a..439132fa152bbdb3a97a7ddb34d94d44c53ef58d 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! foo {
     () => { break 'x; }
index 79ac46ac59ab49307a70fa772ec65c7d89277a55..dfda458652704c92924b454e0b1426dcb9cdcaba 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! foo {
     ($e: expr) => { 'x: for _ in range(0,1) { $e } }
index e1398b2a361a1f0af5cab20ed52a3a4b72e3241d..4b6b6c2fe7677069b35d955529aae7ad2437bb14 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // regression test for issue 11256
-#[crate_type="foo"];    //~ ERROR invalid `crate_type` value
+#![crate_type="foo"]    //~ ERROR invalid `crate_type` value
 
 fn main() {
     return
index e49eb1454d8a2d92f2ea1e469133079830ca6c34..f79a8fffd922d8b1e83f6613489666cf89e7a4fd 100644 (file)
@@ -10,7 +10,7 @@
 
 // Testing that we don't fail abnormally after hitting the errors
 
-#[feature(globs)];
+#![feature(globs)]
 
 use unresolved::*; //~ ERROR unresolved import. maybe a missing
 //~^ ERROR failed to resolve import
index 0fd2b04a199c393a340a5f75dbea9b741c731cb3..d34fb10e9dd58261a0098a75b8ac188089d1c2c3 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 // test that autoderef of a type like this does not
 // cause compiler to loop.  Note that no instances
index c89df46114cba2bc9a8e51757aa43aba1665f761..b12e6799e6a7945920ad22b8b01cd5d08155f40d 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unreachable_code)];
-#[allow(unused_variable)];
-#[allow(dead_code)];
-#[allow(deprecated_owned_vector)];
+#![deny(unreachable_code)]
+#![allow(unused_variable)]
+#![allow(dead_code)]
+#![allow(deprecated_owned_vector)]
 
 
 fn fail_len(v: Vec<int> ) -> uint {
index 9f60cceb152ec006603d6935103d3c0ab01e6119..e3b145411baa661fcdd759d8a933e1a47d26eff1 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct P { child: Option<@P> }
 trait PTrait {
index a4d184e346b0e64aa8c11778148399898d53a023..d28b2dd9904f3d2a3df5abd7dafbe33fbfcfa0f0 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 mod my_mod {
     pub struct MyStruct {
index 6764b489b6255cc6be332656dfe64e99513e3548..373e7339b693988fd2f18a5e234384929036b654 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
+#![feature(globs)]
 
 // ensures that 'use foo:*' doesn't import non-public item
 
index e9c1092a4a55922cf8085dd5ebae446789ba0aec..7959078359cf0984a2bef0607cc1392db7037bc4 100644 (file)
@@ -13,7 +13,7 @@
 // ensures that 'use foo:*' doesn't import non-public 'use' statements in the
 // module 'foo'
 
-#[feature(globs)];
+#![feature(globs)]
 
 use m1::*;
 
index d15fed2d9d261a014a45ef3f555c5144fae1a427..fedb064d2e5f5705b005e414a3f2c283a0da4460 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! print_hd_tl (
     ($field_hd:ident, $($field_tl:ident),+) => ({
index 60f16275fc4ac45b17d82605c0eff4a928142a07..600b28048b4fba1d24ab53a6a67d66bc289cf60a 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 // Matching against NaN should result in a warning
 
index c7fa286d351fee8f68e687ffa12aa83b7dba6c5c..d62c27edf51da175171816562dacdc1ce22daedd 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct BarStruct;
 
index 74bc1ac0d86a1b3870c047626aad700d08199aa6..7e8d431bf19209c153bb481d591a064e58bc1256 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unreachable_code)];
-#[allow(dead_code)];
+#![deny(unreachable_code)]
+#![allow(dead_code)]
 
 use std::ptr;
 pub unsafe fn g() {
index 541a103330252595ebb6a760011c1d6984b65b4f..ca66905688ad9cfd8f4df8755a606e229bae2ddc 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 use std::cell::RefCell;
 
index 91d47cae15cfeee9d61c14adf77d006da67f10dc..45b45dbaf5da4edf25cdc495ff0fccca20e714e0 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unreachable_code)];
+#![deny(unreachable_code)]
 
 fn g() -> ! { fail!(); }
 fn f() -> ! {
index a1b8b06ab955a93249095100252d7b18307510bc..d4010346998cfafd7464e5e4655367009d2b1971 100644 (file)
@@ -10,7 +10,7 @@
 
 // Test which of the builtin types are considered POD.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 use std::rc::Rc;
 
index 1557aff6689f243904de63777be1b5f045f639b0..0e1190d2c124e1073b0c09997e1a12d2a9cdaa4b 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct Foo {
     f: @int,
index 5de2b6b4bb5afba17c559e2b47bc8ddfc5e73368..51687fffd1150aece3de8a17722204e5bef73f8e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn foo(_x: @uint) {}
 
index 524324fa1f1b23bca0163025c93d02880e3d35d3..edbeebe882e51930b1d61808bbeb9a92896cf399 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(linkage)];
+#![feature(linkage)]
 
 extern {
     #[linkage = "extern_weak"] static foo: i32;
index 2da800bcb1cf5d3672752134a651176a90a5df02..11ae2fcf9409a355a6e0b131192b110c9c9ed1f7 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(linkage)];
+#![feature(linkage)]
 
 extern {
     #[linkage = "foo"] static foo: *i32;
index 608cb7fd4a53e2c3c677875f0c3f2a1ff812712c..46199fa0280f855a79dbfa5620bf0bb83b321b24 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unnecessary_allocation)];
+#![deny(unnecessary_allocation)]
 
 fn f(_: &int) {}
 fn g(_: &mut int) {}
index e9985430adfa5858e3b304657e81de86460c6df3..441a8410700bfeff4a32a3309354bc443cca9d2d 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(warnings)];
-#[allow(dead_code)];
+#![deny(warnings)]
+#![allow(dead_code)]
 
 fn main() {
     while true {} //~ ERROR: infinite
index 2e47695f0fc0fa1a9ff1ed1e5cca73eaf0ccc655..e968bd601c572dae5f44a0c5d6c9e7fb4406d174 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(ctypes)];
-#[allow(dead_code)];
+#![deny(ctypes)]
+#![allow(dead_code)]
 
 enum Z { }
 enum U { A }
index 0a1b78c8d5d0afed5f68fb7c11ac1546944eda3a..352a31cf67b2d230100dc9b210abe0b59453a077 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(ctypes)];
+#![deny(ctypes)]
 
 use std::libc;
 
index 629a203fcbb6c8d30b7323c73ce292f945036fdc..04326403376f867fb8309dbabea900863b906bb3 100644 (file)
@@ -8,13 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[no_std];
-#[allow(unused_variable)];
-#[allow(non_camel_case_types)];
-#[allow(visible_private_types)];
-#[deny(dead_code)];
+#![no_std]
+#![allow(unused_variable)]
+#![allow(non_camel_case_types)]
+#![allow(visible_private_types)]
+#![deny(dead_code)]
 
-#[crate_type="lib"];
+#![crate_type="lib"]
 
 pub use foo2::Bar2;
 mod foo {
index 663e7890bbe09ad8e5e31e3f2b3cb80fb72fd4db..1563850c64135667a6abaf4d3648f4ac32563d11 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(unused_variable)];
-#[deny(dead_code)];
+#![allow(unused_variable)]
+#![deny(dead_code)]
 
 struct Foo;
 
index e07fc96a1f31217b6d0b3cece2c33f59e9a70189..7c8a4c2a22cc2818948a61a6ce43f7924923d513 100644 (file)
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(unused_variable)];
-#[allow(non_camel_case_types)];
-#[deny(dead_code)];
+#![allow(unused_variable)]
+#![allow(non_camel_case_types)]
+#![deny(dead_code)]
 
-#[crate_type="lib"];
+#![crate_type="lib"]
 
 struct Foo; //~ ERROR: code is never used
 impl Foo {
index e73e1eacc7ce80823ac5522e1fdb75476e267aca..acc916a03910b92e734fdf58e1f07674f6b9bc4e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(deprecated_owned_vector)];
+#![deny(deprecated_owned_vector)]
 
 fn main() {
     ~[1]; //~ ERROR use of deprecated `~[]`
index f45888010750ef9cca0fb8fae7b79ebe2b58b15a..abe4d08903dc32d81fe50832d7edb3db44428e14 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
-#[forbid(heap_memory)];
-#[allow(dead_code)];
-#[allow(deprecated_owned_vector)];
+#![feature(managed_boxes)]
+#![forbid(heap_memory)]
+#![allow(dead_code)]
+#![allow(deprecated_owned_vector)]
 
 struct Foo {
     x: @int //~ ERROR type uses managed
index ad35a22b4efa0e2b9407d67afcd886ddc7add2ac..eaef43a90836d992f4783b73d22a320ae453018f 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(while_true)];
-#[allow(dead_code)];
+#![allow(while_true)]
+#![allow(dead_code)]
 
 struct A(int);
 
index 6b8a971653d63ead6917c20d430501a2dfc36381..d9a79d7597592c286ad66b9a024ab941fd4e019c 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
-#[forbid(managed_heap_memory)];
+#![feature(managed_boxes)]
+#![forbid(managed_heap_memory)]
 
 struct Foo {
     x: @int //~ ERROR type uses managed
index 64b3a52848b1ea6a5460bdca1a81efdeb5eeaacc..d422dfc513d26424b420d0d2920b35e10a0609d9 100644 (file)
 // When denying at the crate level, be sure to not get random warnings from the
 // injected intrinsics by the compiler.
 
-#[deny(attribute_usage)];
+#![deny(attribute_usage)]
 
 mod a {
-    #[crate_type = "bin"]; //~ ERROR: crate-level attribute
+    #![crate_type = "bin"] //~ ERROR: crate-level attribute
 }
 
 #[crate_type = "bin"] fn main() {} //~ ERROR: crate-level attribute
index 9d640647fe08b9c1b8cd03dff8c9a5abbebf80e1..1abfbf43e79b407b8dfe11b3680282b15b056bde 100644 (file)
 
 // When denying at the crate level, be sure to not get random warnings from the
 // injected intrinsics by the compiler.
-#[feature(struct_variant)];
-#[feature(globs)];
-#[deny(missing_doc)];
-#[allow(dead_code)];
+#![feature(struct_variant)]
+#![feature(globs)]
+#![deny(missing_doc)]
+#![allow(dead_code)]
 
 //! Some garbage docs for the crate here
-#[doc="More garbage"];
+#![doc="More garbage"]
 
 struct Foo {
     a: int,
index 6d217656cd01039768f9e1ffd16f62795d60bc98..57b051e1beac581a2c98210c8dda076094e868c8 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[forbid(non_camel_case_types)];
-#[allow(dead_code)];
+#![forbid(non_camel_case_types)]
+#![allow(dead_code)]
 
 struct foo { //~ ERROR type `foo` should have a camel case identifier
     bar: int,
index d41a4ccda8d120aa4cb0c6cb7cdda51e44ed61a9..6eca7c3ed3d544b556aa2fed2a039886bec173ed 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[forbid(non_uppercase_statics)];
-#[allow(dead_code)];
+#![forbid(non_uppercase_statics)]
+#![allow(dead_code)]
 
 static foo: int = 1; //~ ERROR static constant should have an uppercase identifier
 
index 442bcaa0923140bed7780a6e1a7e1b49aa6b5170..8b70953146da783ddc8ec4bfb40f7d2723e7f461 100644 (file)
@@ -11,8 +11,8 @@
 // When denying at the crate level, be sure to not get random warnings from the
 // injected intrinsics by the compiler.
 
-#[deny(attribute_usage)];
-#[allow(dead_code)];
+#![deny(attribute_usage)]
+#![allow(dead_code)]
 
 #[abi="stdcall"] extern {} //~ ERROR: obsolete attribute
 
index 9f5b4497d93fab439a2cdf35c1a9bad97ad4d3b2..859dd127b97202c79c8df1248775908d4d46c3da 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[forbid(owned_heap_memory)];
+#![forbid(owned_heap_memory)]
 
 struct Foo {
     x: ~int //~ ERROR type uses owned
index a6775c51c456ebb958035544935f0ea7119d26d2..7006a2837508ddd333e7ad9e016dd69be0181a47 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unnecessary_qualification)];
+#![deny(unnecessary_qualification)]
 
 mod foo {
     pub fn bar() {}
index f58ccf2d498a2243f3747aa6e1b0027aed568734..d3fdd508f4559de165fc4d8e21545368249f42cd 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(struct_variant)];
-#[allow(dead_code)];
-#[deny(raw_pointer_deriving)];
+#![feature(struct_variant)]
+#![allow(dead_code)]
+#![deny(raw_pointer_deriving)]
 
 #[deriving(Clone)]
 struct Foo {
index f45f654229f5449a223e33d55bc5a6ccb9bba511..4ebd9f1cefdb4905084cb0895aecd3196fca646b 100644 (file)
 // ignore-fast aux-build
 // aux-build:lint_stability.rs
 
-#[feature(globs)];
-#[deny(unstable)];
-#[deny(deprecated)];
-#[deny(experimental)];
-#[allow(dead_code)];
+#![feature(globs)]
+#![deny(unstable)]
+#![deny(deprecated)]
+#![deny(experimental)]
+#![allow(dead_code)]
 
 mod cross_crate {
     extern crate lint_stability;
index f609debb5bd8fc881fd6ccfd50a69470ba58cf9b..8cca39a7a257e65f4d2fa44dbb65387482733dd3 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 // compile-flags: -D type-limits
 fn main() { }
index e6c535925a4a00648217a5aa658eae2f7150eaeb..e5a5c7dd1c7c26a589bc9cc82ed2b68cfbfb7f1e 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 //
 
-#[deny(type_overflow)];
+#![deny(type_overflow)]
 
 fn test(x: i8) {
     println!("x {}", x);
index ce83ba464c06eb3773da3faa2afb618867335f6f..dbbf91f725dc0f97b1600ecf2cba3470be625383 100644 (file)
@@ -11,9 +11,9 @@
 // When denying at the crate level, be sure to not get random warnings from the
 // injected intrinsics by the compiler.
 
-#[deny(attribute_usage)];
+#![deny(attribute_usage)]
 
-#[mutable_doc]; //~ ERROR: unknown crate attribute
+#![mutable_doc] //~ ERROR: unknown crate attribute
 
 #[dance] mod a {} //~ ERROR: unknown attribute
 
index 15f446a671cac269bed490476be7a23321eefdc2..6252e01749bd218a2184820e3e70e85368daa5e7 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unknown_features)];
+#![deny(unknown_features)]
 
-#[feature(this_is_not_a_feature)]; //~ ERROR: unknown feature
+#![feature(this_is_not_a_feature)] //~ ERROR: unknown feature
 
 fn main() {}
index 9324bf110056ab15af9856e54419cb7470905af8..644c5d9fb3d575dde92cb001ac4b05d9af1bc7de 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[forbid(unnecessary_typecast)];
+#![forbid(unnecessary_typecast)]
 
 fn foo_i32(_: i32) {}
 
index 528fc2f64b49be7b1a682f9b2afa1f5aac309f1a..b2abe025794bf728aa6133da685a9feb1c19f381 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unnecessary_parens)];
+#![deny(unnecessary_parens)]
 
 fn foo() -> int {
     return (1); //~ ERROR unnecessary parentheses around `return` value
index 529d3e921a069e23fc071ec993b2aa4aab9b6678..a4c50781a774b7a22a4005c736eb1bb691c8df96 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(unused_unsafe)];
-#[allow(dead_code)];
-#[deny(unsafe_block)];
-#[feature(macro_rules)];
+#![allow(unused_unsafe)]
+#![allow(dead_code)]
+#![deny(unsafe_block)]
+#![feature(macro_rules)]
 
 unsafe fn allowed() {}
 
index 9d6140b8fd233cc20dccdc87ae823d63882b6aa9..62ea337656d77522feead4d39ba79844f08aa007 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
-#[deny(unused_imports)];
-#[allow(dead_code)];
+#![feature(globs)]
+#![deny(unused_imports)]
+#![allow(dead_code)]
 
 mod A {
     pub fn p() {}
index 0dc1091dabd1d45eba3120e8247fea1e8d742f0c..39e344da115e1cd45aa6ecfff6c22335ebb43fc6 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unused_imports)];
-#[allow(non_camel_case_types)];
-#[allow(dead_code)];
+#![deny(unused_imports)]
+#![allow(non_camel_case_types)]
+#![allow(dead_code)]
 
 // Regression test for issue #6633
 mod issue6633 {
index e4d9048ca8d51923b5f1767727291e1cea35d77f..0e89094aace6249506a9eb23a1e7b3cc8d02fdf7 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
-#[deny(unused_imports)];
-#[allow(dead_code)];
-#[allow(deprecated_owned_vector)];
+#![feature(globs)]
+#![deny(unused_imports)]
+#![allow(dead_code)]
+#![allow(deprecated_owned_vector)]
 
 use cal = bar::c::cc;
 
index ada534ffc72a50bccfe6d9b36529e81c0e0ef43a..84c484a91e2c4f4f78cc7180efff3a956c353a79 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_assignment)];
-#[allow(unused_variable)];
-#[allow(dead_code)];
-#[deny(unused_mut)];
+#![allow(dead_assignment)]
+#![allow(unused_variable)]
+#![allow(dead_code)]
+#![deny(unused_mut)]
 
 struct Foo;
 impl Foo {
index ad3ac4eba11885045d8c92a5d76c711bdd636632..b372720467e3f88ccb07e301d6394b8a751beb05 100644 (file)
 
 // Exercise the unused_mut attribute in some positive and negative cases
 
-#[allow(dead_assignment)];
-#[allow(unused_variable)];
-#[allow(dead_code)];
-#[allow(deprecated_owned_vector)];
-#[deny(unused_mut)];
+#![allow(dead_assignment)]
+#![allow(unused_variable)]
+#![allow(dead_code)]
+#![allow(deprecated_owned_vector)]
+#![deny(unused_mut)]
 
 
 fn main() {
index 87448f68d02039a7ca2ee744b66639d6eb05ff9e..ecea33cbe8efd9f4d7efb9b09bc50620b353069d 100644 (file)
@@ -10,9 +10,9 @@
 
 // Exercise the unused_unsafe attribute in some positive and negative cases
 
-#[allow(dead_code)];
-#[deny(unused_unsafe)];
-#[allow(deprecated_owned_vector)];
+#![allow(dead_code)]
+#![deny(unused_unsafe)]
+#![allow(deprecated_owned_vector)]
 
 
 mod foo {
index 114d5d4fdf042f04471e6adb05c47140c6002237..386b4019485a91cc66a59795371b175bb33cbaae 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(uppercase_variables)];
+#![deny(uppercase_variables)]
 
 use std::io::File;
 use std::io::IoError;
index 6d77f8b324c524a6f4d27ba51afb8961f894d382..484bb1532d1570e5a9f1f4577eebfc6cb8122115 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(struct_variant)];
-#[deny(visible_private_types)];
-#[allow(dead_code)];
-#[crate_type="lib"];
+#![feature(struct_variant)]
+#![deny(visible_private_types)]
+#![allow(dead_code)]
+#![crate_type="lib"]
 
 struct Private<T>;
 pub struct Public<T>;
index a3d388d7c341ba9350e486f845be4e5786c91cc2..cba0a1da7e65709bdf11d7bfa77bbd72bc2a24c9 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
-#[deny(dead_assignment)];
+#![allow(dead_code)]
+#![deny(dead_assignment)]
 
 fn f1(x: &mut int) {
     *x = 1; // no error
index 1b32c008af182c48da621c1feb3079f7e2c5bd77..8a6585f8bbc41e2322d5337e4c1493267d1bc633 100644 (file)
@@ -10,7 +10,7 @@
 //
 // regression test for #8005
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! test ( () => { fn foo() -> int { 1i; } } )
                                              //~^ ERROR not all control paths return a value
index 33fc094abbe75b5586374bf54a1faa31b62d6266..ee44872d1220143a7e252409f7ea0614194b98f4 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unused_variable)];
-#[deny(dead_assignment)];
-#[allow(dead_code, non_camel_case_types)];
+#![deny(unused_variable)]
+#![deny(dead_assignment)]
+#![allow(dead_code, non_camel_case_types)]
 
 fn f1(x: int) {
     //~^ ERROR unused variable: `x`
index 3ff19923df6bfb4e2bc6bd90212525c4540ad0e5..6f4c450940e0f5b47947b87f138383acd6bd3612 100644 (file)
@@ -13,7 +13,7 @@
 // ignore-android
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate macro_crate_test;
index 3301eb145ce271df34693d6b28d11af83c6d872e..84c915f267ec26fd78c3ccc59f2f804c37a501fe 100644 (file)
@@ -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)]
 extern crate doesnt_exist; //~ ERROR can't find crate
index 98e0ecfad864504138c4f631e782eabf8f3754ab..43ba2c8a8a5e74dcc019a2d628740ac3116ae773 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! ignored_item {
     () => {
index 753ab3d036810b4aa1e83144a0e07e40a12f8130..ae804ea7ece409251ad952111d03ca86bf64f791 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! test ( ($nm:ident,
                      #[$a:meta],
index a4ded8e20b91c56dfddb36638393210321f0f345..e41f1bd369a884bde84f45219dcfb45262eb0f6e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! test ( ($nm:ident,
                      #[$a:meta],
index effab305c1a601708475d182f79db70af0aa2ba4..4cfa5b8926c2d35e1576ae89503963f4dd998203 100644 (file)
@@ -11,8 +11,8 @@
 // test that errors in a (selection) of macros don't kill compilation
 // immediately, so that we get more errors listed at a time.
 
-#[feature(asm)];
-#[feature(trace_macros)];
+#![feature(asm)]
+#![feature(trace_macros)]
 
 #[deriving(Default, //~ ERROR
            Rand, //~ ERROR
index fd605b79dbecd48796f916f2c69b907aa5c0ebb9..f77ea2db8c02b4ebeb3b95190e04ac7ec35c84bc 100644 (file)
@@ -10,8 +10,8 @@
 
 // Issue #7526: lowercase static constants in patterns look like bindings
 
-#[allow(dead_code)];
-#[deny(non_uppercase_pattern_statics)];
+#![allow(dead_code)]
+#![deny(non_uppercase_pattern_statics)]
 
 pub static a : int = 97;
 
index ed0138e05be4c1536a8becf688b55abe16138c5b..710d9d1ca200ed2e701920fcf7c687601a1ebd6b 100644 (file)
@@ -11,7 +11,7 @@
 // Tests that references to move-by-default values trigger moves when
 // they occur as part of various kinds of expressions.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct Foo<A> { f: A }
 fn guard(_s: ~str) -> bool {fail!()}
index 7f88af36e8a5c4a6ca279e531532e419c3ffbca1..fecc597b8fd2fff6ec0fd2acbdb3e647ee1bd1be 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[no_implicit_prelude];
+#![no_implicit_prelude]
 
 // Test that things from the prelude aren't in scope. Use many of them
 // so that renaming some things won't magically make this test fail
index 68077d61c9f81643c2843546626aca65d202f1d1..825a8fc604c6ffff8e95cb37188ccad88fb83143 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 use std::task;
 
index 51ca71ae2cc5365a494385dad698708802f8677b..bef909917d22a39c2f79fc1f546f3b08f780af06 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // regresion test for issue 11256
-#[crate_type];  //~ ERROR `crate_type` requires a value
+#![crate_type]  //~ ERROR `crate_type` requires a value
 
 fn main() {
     return
index f08272f58acd763120fd7c25048f09c1dee2e81c..fd0da8ba9cf38ae5a02a90ac602a1b4dd56b1c37 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn main() {
     let f; //~ ERROR cyclic type of infinite size
index c9ee105fe7b93b01f1ef55f399d5116ce59a7fc9..9d0de6b37538e290fa7d6636dfad722d4a5d8011 100644 (file)
@@ -11,7 +11,7 @@
 // Testing guarantees provided by once functions.
 // This program would segfault if it were legal.
 
-#[feature(once_fns)];
+#![feature(once_fns)]
 extern crate sync;
 use sync::Arc;
 
index a81ddf06ac86e28b6e00486f3dae9b1fc06ff212..45cfa8836963937522cae6613a8ed02accf75f6a 100644 (file)
@@ -11,7 +11,7 @@
 // Testing guarantees provided by once functions.
 // This program would segfault if it were legal.
 
-#[feature(once_fns)];
+#![feature(once_fns)]
 extern crate sync;
 use sync::Arc;
 
index 3a0afd70e3e7186eaaea56d515daf43286a34bbc..7594deda3b2d854a70442450f0ce2b475e6b4207 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(once_fns)];
+#![feature(once_fns)]
 fn main() {
     let f: once || = ||();
     let g: || = f;  //~ ERROR mismatched types
index 98ca0697db95e6fbdf70ba3b57088c1ca0fcc70c..9bfc7fc34bb5b25408a99de50822b53b25afdb89 100644 (file)
@@ -13,7 +13,7 @@
 // ignore-android
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate macro_crate_test;
index 6479a9404e2d560ba141e73b99a221b96d473b6c..0589d58a4c25d7b03a72bcc3492caf1d4d788157 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 use std::cell::Cell;
 
index 541356f65999b1f41557dfbfe049cf46dc523974..cb11a50055f7dbfa5f9ddeb0ad71690a0e3c9c64 100644 (file)
@@ -11,9 +11,9 @@
 // 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)];
-#[allow(dead_code)];
-#[allow(unused_imports)];
+#![feature(globs)]
+#![allow(dead_code)]
+#![allow(unused_imports)]
 
 // public type, private value
 pub mod foo1 {
index e293153e9da2d921bd59228cb13301a48671f4fc..c75b12165c090040864ff39d1cc248ddaa685834 100644 (file)
@@ -11,9 +11,9 @@
 // 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)];
-#[allow(dead_code)];
-#[allow(unused_imports)];
+#![feature(globs)]
+#![allow(dead_code)]
+#![allow(unused_imports)]
 
 // public type, private value
 pub mod foo1 {
index fdc681e1da0c34afdf5ad42b8e85599cb9f3396b..0aba36eebee8a7804d78fe71330d38d5603badb0 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
-#[no_std]; // makes debugging this test *a lot* easier (during resolve)
+#![feature(globs)]
+#![no_std] // makes debugging this test *a lot* easier (during resolve)
 
 mod bar {
     // shouln't bring in too much
index 98772b0c67b82cc8ad59c04b761ed9c4b31e2164..df4e401dfa53fd0d7d7989c3cc16f14a7481a75e 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
-#[no_std]; // makes debugging this test *a lot* easier (during resolve)
+#![feature(globs)]
+#![no_std] // makes debugging this test *a lot* easier (during resolve)
 
 // Test to make sure that globs don't leak in regular `use` statements.
 
index 3308be4a12e782946a7ad894f041e1afc8f5f0d6..f8d8ba2ab1aa389b26513dce91102b72f9c7cba7 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
-#[no_std]; // makes debugging this test *a lot* easier (during resolve)
+#![feature(globs)]
+#![no_std] // makes debugging this test *a lot* easier (during resolve)
 
 // Test to make sure that private items imported through globs remain private
 // when  they're used.
index 4e33536b2b05f381b31d62645a4fb5bb87cecedf..18a94cb86c84781554208feef04e6d92781aac2b 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(globs)];
-#[no_std]; // makes debugging this test *a lot* easier (during resolve)
+#![feature(globs)]
+#![no_std] // makes debugging this test *a lot* easier (during resolve)
 
 // Test to make sure that private items imported through globs remain private
 // when  they're used.
index b17ec8782f10c9c8e74ff0a2a6162051e119b8a0..b069a35ad7a262b414bcf987a30371e62f141400 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct point {
     x: int,
index 3719be3612bc07908a6b09f366ba552d7252dc21..9be8a5fef4dee3822e176e5cb8f8886b436a0c94 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn borrow<'r, T>(x: &'r T) -> &'r T {x}
 
index b36933c4957f2f47e3c5c6cd0c1c2f697c929d52..ae1cbcf3e68745004fd393a42965fa0ba1314ef4 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct invariant<'a> {
     f: 'static |x: &mut &'a int|
index 449cbc6970fdb2e61a8646be3ff4c3f701db290b..096d8912f8b84cebeded962d8b626a8c83f1e698 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct invariant<'a> {
     f: 'static || -> &mut &'a int
index e2f4f791652a59d9966e5b06ac373301c3099db6..6e8013529a9372f41a62b7126dc35c027876a311 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 // Check that we correctly infer that b and c must be region
 // parameterized because they reference a which requires a region.
index 64c045366e1384b59b48d544c8655d9ee9471968..f9cc4d0d8c372f1658dc1eed65a325e1d07c3e91 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(experimental)];
+#![deny(experimental)]
 
 use std::unstable::simd;
 
index 6a57ee76cdff28958aadde6fde814ccd83dc897d..16be3941298de24f876a57a41fc1c2811df74b56 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(simd)];
+#![feature(simd)]
 
 #[simd]
 struct vec4<T>(T, T, T, T); //~ ERROR SIMD vector cannot be generic
index d9e3846c5060bf6e54c7bac794321f1d328c7cc6..349e5f4cb5105c433ab38fb9e4fd52c2bf7c933e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 #[static_assert]
 static A: bool = false; //~ ERROR static assertion failed
index 30c6f05bd6084d9f73edcd21c5959e659250b2f3..d5e70205e9536f5ffa22f71232c8f5d0fc8b256c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(dead_code)];
+#![allow(dead_code)]
 
 #[static_assert]
 static E: bool = 1 == 2; //~ ERROR static assertion failed
index ed9d3cd74d045b1de2ef05abc58d0cd5ecf33abe..4911ceb3ef44470d1236fcf9d80f886230d32d7e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn f<T:'static>(_: T) {}
 
index 1b2f1fc32072db5f2234f2c499543157513b156c..cd853a2cf4d7880900b69ee9fd6c98c8a462e699 100644 (file)
@@ -10,7 +10,7 @@
 
 // Issue #8380
 
-#[feature(globs)];
+#![feature(globs)]
 
 use std::sync::atomics::*;
 use std::ptr;
index 06fd4e6d8c9c397e40743cb700ca90f84f393a54..8d1e5b462792f55e400f53117b8072ea4508e4cb 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(struct_variant)];
+#![feature(struct_variant)]
 
 enum A {
     B { x: Option<int> },
index 920726a4870135a92329c8dcb38bf81bdca37ef7..865ab7e6e84b68468e9a41f16b6a151a4a76a491 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate fourcc;
index 08ee57a2d94eae25cee2d69616d58ac7f731933b..c127035bf1e45fb020e471c11223d61d0889c8c2 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate fourcc;
index af49d9988d890a72cd67f8f7936584db1175d3af..28b146635f1458366be64fbf7983372f3c7596ba 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate fourcc;
index b4195ed9bc88bac14e5086e9f37fba6ef52b227e..1f1a7ab80f96679958f609b99a4b4452bd13ed68 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate fourcc;
index 1997b7ad8e7629a74cadda212d4cd63b8d1c2662..a745c227fb14dcc4ef8ccb4b43f689865cb5d8bf 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate fourcc;
index 9a7129dd2cf8431a9022c8593f56d8c124af2069..04b34c85b78f7959c19dfc7bebe92f16726ad7e8 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate hexfloat;
index cf7a2fb6acbc63043af14cf3f21888dbff7347b6..6b2f8067ccc44324df22e3027a2f959e7ee72721 100644 (file)
@@ -12,7 +12,7 @@
 // ignore-pretty
 // ignore-cross-compile #12102
 
-#[feature(phase)];
+#![feature(phase)]
 
 #[phase(syntax)]
 extern crate hexfloat;
index 6a2fd99f6480fa2a16a743af7beed730f66ed5ae..8f3cb5bc0a6ba91b76d1bea181bccfa273b7948e 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 struct foo {
     a: int,
index 557dcdc73c8e102a275ecfb593990aabab226866..d5955601f2dc4965646a37497085675be11dbb2e 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-fast feature doesn't work
-#[feature(macro_rules, trace_macros)];
+#![feature(macro_rules, trace_macros)]
 
 fn main() {
     trace_macros!(); //~ ERROR trace_macros! accepts only `true` or `false`
index b5474210dc5f34bbd488812b196841201660de59..039f94ec2e768dedcb71d1600fe3cb3d22456014 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 trait Mumbo {
     fn jumbo(&self, x: @uint) -> uint;
index b9965b18229364dc7ac4522523f487c52c8330e7..8e951cc9b55d344e2abfd9893318cc5de2081882 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 fn f<T:Send>(_i: T) {
 }
index c76a6f2453e243b30f1661e57654641bbcba120e..b83277b38a6897bd77cf815315caeea84278ca89 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 use std::cell::Cell;
 
index a9365eeda1c55a62aa350340763c7205d3435def..96adb29cbc80ddecc35918d5ef9cedb327d2699e 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unreachable_code)];
-#[allow(unused_variable)];
+#![deny(unreachable_code)]
+#![allow(unused_variable)]
 
 fn main() {
   loop{}
index 2aefdd213bbc50ddef0dbe994797068bf3310986..484a8979d718b0aed5235cea7ff7199d15b17ae4 100644 (file)
@@ -10,7 +10,7 @@
 
 // issue #12418
 
-#[deny(unused_unsafe)];
+#![deny(unused_unsafe)]
 
 fn main() {
     unsafe { println!("foo"); } //~ ERROR unnecessary `unsafe`
index 4fbb4db44796cae1d1786d83175945725941e2d6..acfcccf3ace5d03a41b0e48d229ce386b09f8a46 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[feature(managed_boxes)];
+#![feature(managed_boxes)]
 
 // Test that a class with an unsendable field can't be
 // sent
index eaf4d7d94c454b65b99566839d51bb35e49eeea8..44058c1ddda190faec96844058b370847bc06605 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(unused_result, unused_must_use)];
-#[allow(dead_code)];
+#![deny(unused_result, unused_must_use)]
+#![allow(dead_code)]
 
 #[must_use]
 enum MustUse { Test }
index 726d778c3bb2b7e0b4e0df27af1169ee12a6d377..8a5881d3797677bbcc1f738a9e0f1c34a0fb1681 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[forbid(ctypes)];
-#[allow(dead_code)];
+#![forbid(ctypes)]
+#![allow(dead_code)]
 
 mod xx {
     extern {
index e92685f3e58abb06e340edbad6212c176e10b9d6..cfcde320d99b1569da53357d4cdad4800e1c02d1 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-fast
 // ignore-pretty - token trees can't pretty print
 // compile-flags: --cfg foo