]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/sgx/rwlock.rs
Revert "Auto merge of #65134 - davidtwco:issue-19834-improper-ctypes-in-extern-C...
[rust.git] / src / libstd / sys / sgx / rwlock.rs
index c32e6dd3786692086003c743a9c968a3933e290c..e2f94b1d928e10db38416f8c874fd88fb08c652d 100644 (file)
@@ -172,7 +172,6 @@ pub unsafe fn destroy(&self) {}
 
 #[cfg(not(test))]
 #[no_mangle]
-#[allow(improper_ctypes)]
 pub unsafe extern "C" fn __rust_rwlock_rdlock(p: *mut RWLock) -> i32 {
     if p.is_null() {
         return EINVAL;
@@ -182,7 +181,6 @@ pub unsafe fn destroy(&self) {}
 }
 
 #[cfg(not(test))]
-#[allow(improper_ctypes)]
 #[no_mangle]
 pub unsafe extern "C" fn __rust_rwlock_wrlock(p: *mut RWLock) -> i32 {
     if p.is_null() {
@@ -192,7 +190,6 @@ pub unsafe fn destroy(&self) {}
     return 0;
 }
 #[cfg(not(test))]
-#[allow(improper_ctypes)]
 #[no_mangle]
 pub unsafe extern "C" fn __rust_rwlock_unlock(p: *mut RWLock) -> i32 {
     if p.is_null() {