Rollup merge of #71980 - steveklabnik:warnings-fixes, r=Mark-Simulacrum

Allow a few warnings.

On Windows, these types were causing warnings to be emitted during the
build. These types are allowed to not have idiomatic names, so the
warning should be supressed.
This commit is contained in:
Dylan DPC 2020-05-07 17:59:00 +02:00 committed by GitHub
commit c818e84821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@ use libc;
// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here? // FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
#[cfg(not(unix))] #[cfg(not(unix))]
#[allow(non_camel_case_types)]
mod libc { mod libc {
pub use libc::c_int; pub use libc::c_int;
pub type socklen_t = u32; pub type socklen_t = u32;

View File

@ -11,10 +11,15 @@
#![allow(deprecated)] #![allow(deprecated)]
#[stable(feature = "raw_ext", since = "1.1.0")] #[stable(feature = "raw_ext", since = "1.1.0")]
#[allow(non_camel_case_types)]
pub type uid_t = u32; pub type uid_t = u32;
#[stable(feature = "raw_ext", since = "1.1.0")] #[stable(feature = "raw_ext", since = "1.1.0")]
#[allow(non_camel_case_types)]
pub type gid_t = u32; pub type gid_t = u32;
#[stable(feature = "raw_ext", since = "1.1.0")] #[stable(feature = "raw_ext", since = "1.1.0")]
#[allow(non_camel_case_types)]
pub type pid_t = i32; pub type pid_t = i32;
#[doc(inline)] #[doc(inline)]