]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/types.rs
Auto merge of #28779 - alexcrichton:ffi-isize-usize, r=nrc
[rust.git] / src / librustc_lint / types.rs
index cf6cc9bb7ce12a9419096806acf67071b88b8570..c95d8b7bf3e885e25b97819357d0f32c7723a2d3 100644 (file)
@@ -497,14 +497,6 @@ fn check_type_for_ffi(&self,
                 FfiSafe
             }
 
-            ty::TyInt(ast::TyIs) => {
-                FfiUnsafe("found Rust type `isize` in foreign module, while \
-                          `libc::c_int` or `libc::c_long` should be used")
-            }
-            ty::TyUint(ast::TyUs) => {
-                FfiUnsafe("found Rust type `usize` in foreign module, while \
-                          `libc::c_uint` or `libc::c_ulong` should be used")
-            }
             ty::TyChar => {
                 FfiUnsafe("found Rust type `char` in foreign module, while \
                            `u32` or `libc::wchar_t` should be used")