mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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:
commit
c818e84821
@ -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;
|
||||||
|
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user