diff options
| author | bors <bors@rust-lang.org> | 2014-03-28 17:16:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-28 17:16:48 -0700 |
| commit | ff733c767a2ac48e5f94a37bc8ed3d2f1bc1141c (patch) | |
| tree | f398acb54f2432247f3c174555010b3055cd7133 /src/libstd/rt | |
| parent | cbfc0a5e33eb3d97a2995d120536b8dadc0cc0a2 (diff) | |
| parent | 451e8c1c6178750a4c1789f40749562164a980b7 (diff) | |
| download | rust-ff733c767a2ac48e5f94a37bc8ed3d2f1bc1141c.tar.gz rust-ff733c767a2ac48e5f94a37bc8ed3d2f1bc1141c.zip | |
auto merge of #13162 : alexcrichton/rust/attr-syntax, r=brson
This is the rebasing of #13068 with a fix for #13067 as the first commit.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/backtrace.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/bookkeeping.rs | 4 | ||||
| -rw-r--r-- | src/libstd/rt/libunwind.rs | 4 | ||||
| -rw-r--r-- | src/libstd/rt/local_ptr.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/macros.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/thread.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/thread_local_storage.rs | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs index 7ae2521c423..96f95622b92 100644 --- a/src/libstd/rt/backtrace.rs +++ b/src/libstd/rt/backtrace.rs @@ -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; diff --git a/src/libstd/rt/bookkeeping.rs b/src/libstd/rt/bookkeeping.rs index 932cd7af033..9e772d8ad23 100644 --- a/src/libstd/rt/bookkeeping.rs +++ b/src/libstd/rt/bookkeeping.rs @@ -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}; diff --git a/src/libstd/rt/libunwind.rs b/src/libstd/rt/libunwind.rs index fabfa2c8a7a..e9a925fb897 100644 --- a/src/libstd/rt/libunwind.rs +++ b/src/libstd/rt/libunwind.rs @@ -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; diff --git a/src/libstd/rt/local_ptr.rs b/src/libstd/rt/local_ptr.rs index 898004c665d..30068712977 100644 --- a/src/libstd/rt/local_ptr.rs +++ b/src/libstd/rt/local_ptr.rs @@ -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; diff --git a/src/libstd/rt/macros.rs b/src/libstd/rt/macros.rs index 3ef57710344..74675c85b96 100644 --- a/src/libstd/rt/macros.rs +++ b/src/libstd/rt/macros.rs @@ -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)*) => ( { diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 28f11f44054..5e2f8efd2e3 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -52,7 +52,7 @@ Several modules in `core` are clients of `rt`: */ // FIXME: this should not be here. -#[allow(missing_doc)]; +#![allow(missing_doc)] use any::Any; use kinds::Send; diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index 7c4bd895469..1802016e3b3 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -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; diff --git a/src/libstd/rt/thread_local_storage.rs b/src/libstd/rt/thread_local_storage.rs index 40d9523cf3a..2f567e91b4c 100644 --- a/src/libstd/rt/thread_local_storage.rs +++ b/src/libstd/rt/thread_local_storage.rs @@ -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; |
