diff options
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; |
