diff options
| author | Kevin Butler <haqkrs@gmail.com> | 2014-05-30 17:07:16 +0100 |
|---|---|---|
| committer | Kevin Butler <haqkrs@gmail.com> | 2014-05-30 17:59:41 +0100 |
| commit | 030b3a2499a73a6d3b4629ad676d2d9cd6a79df0 (patch) | |
| tree | 3f91ec213f4f8bd4a4b1e9679a59dec5b6529dbb /src/libstd | |
| parent | 09fc34066b202ce454c3230368de63be621be98c (diff) | |
| download | rust-030b3a2499a73a6d3b4629ad676d2d9cd6a79df0.tar.gz rust-030b3a2499a73a6d3b4629ad676d2d9cd6a79df0.zip | |
windows: Allow snake_case errors for now.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 3 | ||||
| -rw-r--r-- | src/libstd/rand/os.rs | 3 | ||||
| -rw-r--r-- | src/libstd/rt/backtrace.rs | 1 | ||||
| -rw-r--r-- | src/libstd/rt/libunwind.rs | 1 | ||||
| -rw-r--r-- | src/libstd/rt/thread.rs | 1 | ||||
| -rw-r--r-- | src/libstd/rt/thread_local_storage.rs | 3 | ||||
| -rw-r--r-- | src/libstd/unstable/dynamic_lib.rs | 3 | ||||
| -rw-r--r-- | src/libstd/unstable/mutex.rs | 1 |
8 files changed, 12 insertions, 4 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index f6b9a7b24bc..7e6d3c0606f 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -1,4 +1,4 @@ -// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -27,6 +27,7 @@ */ #![allow(missing_doc)] +#![allow(non_snake_case_functions)] use clone::Clone; use container::Container; diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs index 3a6c0124ee0..284d41d3208 100644 --- a/src/libstd/rand/os.rs +++ b/src/libstd/rand/os.rs @@ -1,4 +1,4 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -93,6 +93,7 @@ mod imp { static CRYPT_VERIFYCONTEXT: DWORD = 0xF0000000; static NTE_BAD_SIGNATURE: DWORD = 0x80090006; + #[allow(non_snake_case_functions)] extern "system" { fn CryptAcquireContextA(phProv: *mut HCRYPTPROV, pszContainer: LPCSTR, diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs index f4cb770544c..ac421bf78be 100644 --- a/src/libstd/rt/backtrace.rs +++ b/src/libstd/rt/backtrace.rs @@ -518,6 +518,7 @@ mod imp { use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT}; use slice::ImmutableVector; + #[allow(non_snake_case_functions)] extern "system" { fn GetCurrentProcess() -> libc::HANDLE; fn GetCurrentThread() -> libc::HANDLE; diff --git a/src/libstd/rt/libunwind.rs b/src/libstd/rt/libunwind.rs index 4fd610d7423..00301e71b0d 100644 --- a/src/libstd/rt/libunwind.rs +++ b/src/libstd/rt/libunwind.rs @@ -11,6 +11,7 @@ //! Unwind library interface #![allow(non_camel_case_types)] +#![allow(non_snake_case_functions)] #![allow(dead_code)] // these are just bindings use libc; diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index 6cc9604dc59..81dcf909706 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -199,6 +199,7 @@ mod imp { SwitchToThread(); } + #[allow(non_snake_case_functions)] extern "system" { fn CreateThread(lpThreadAttributes: LPSECURITY_ATTRIBUTES, dwStackSize: SIZE_T, diff --git a/src/libstd/rt/thread_local_storage.rs b/src/libstd/rt/thread_local_storage.rs index 2551c89972e..a3ebcbafff8 100644 --- a/src/libstd/rt/thread_local_storage.rs +++ b/src/libstd/rt/thread_local_storage.rs @@ -1,4 +1,4 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -86,6 +86,7 @@ pub unsafe fn destroy(key: Key) { } #[cfg(windows)] +#[allow(non_snake_case_functions)] extern "system" { fn TlsAlloc() -> DWORD; fn TlsFree(dwTlsIndex: DWORD) -> BOOL; diff --git a/src/libstd/unstable/dynamic_lib.rs b/src/libstd/unstable/dynamic_lib.rs index 81eb51107ba..6c406a7c847 100644 --- a/src/libstd/unstable/dynamic_lib.rs +++ b/src/libstd/unstable/dynamic_lib.rs @@ -1,4 +1,4 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -317,6 +317,7 @@ pub mod dl { FreeLibrary(handle as *libc::c_void); () } + #[allow(non_snake_case_functions)] extern "system" { fn SetLastError(error: libc::size_t); fn LoadLibraryW(name: *libc::c_void) -> *libc::c_void; diff --git a/src/libstd/unstable/mutex.rs b/src/libstd/unstable/mutex.rs index 04da7dab6c6..4e51e714777 100644 --- a/src/libstd/unstable/mutex.rs +++ b/src/libstd/unstable/mutex.rs @@ -543,6 +543,7 @@ mod imp { libc::CloseHandle(block); } + #[allow(non_snake_case_functions)] extern "system" { fn CreateEventA(lpSecurityAttributes: LPSECURITY_ATTRIBUTES, bManualReset: BOOL, |
