diff options
| author | David Wood <david@davidtw.co> | 2020-05-28 15:57:09 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2020-06-24 12:09:35 +0100 |
| commit | 14ea7a777f924995256a05da55133d265ed169be (patch) | |
| tree | 269733c6438fff740e0b53cc40daaf34d40c5510 /src/libstd | |
| parent | 3c90ae8404b6b83bc3cba35840ddf7edd500cc86 (diff) | |
| download | rust-14ea7a777f924995256a05da55133d265ed169be.tar.gz rust-14ea7a777f924995256a05da55133d265ed169be.zip | |
lints: add `improper_ctypes_definitions`
This commit adds a new lint - `improper_ctypes_definitions` - which
functions identically to `improper_ctypes`, but on `extern "C" fn`
definitions (as opposed to `improper_ctypes`'s `extern "C" {}`
declarations).
Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/sgx/abi/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/sgx/abi/mod.rs b/src/libstd/sys/sgx/abi/mod.rs index 87e7a5da2b7..5ef26d4cc4d 100644 --- a/src/libstd/sys/sgx/abi/mod.rs +++ b/src/libstd/sys/sgx/abi/mod.rs @@ -56,6 +56,7 @@ unsafe extern "C" fn tcs_init(secondary: bool) { // able to specify this #[cfg(not(test))] #[no_mangle] +#[allow(improper_ctypes_definitions)] extern "C" fn entry(p1: u64, p2: u64, p3: u64, secondary: bool, p4: u64, p5: u64) -> (u64, u64) { // FIXME: how to support TLS in library mode? let tls = Box::new(tls::Tls::new()); |
