Skip to content

Commit

Permalink
Allow a few warnings.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
steveklabnik committed May 7, 2020
1 parent d626e4d commit d14f000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/sys/unix/ext/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use libc;

// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
#[cfg(not(unix))]
#[allow(non_camel_case_types)]
mod libc {
pub use libc::c_int;
pub type socklen_t = u32;
Expand Down
5 changes: 5 additions & 0 deletions src/libstd/sys/unix/ext/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
#![allow(deprecated)]

#[stable(feature = "raw_ext", since = "1.1.0")]
#[allow(non_camel_case_types)]
pub type uid_t = u32;

#[stable(feature = "raw_ext", since = "1.1.0")]
#[allow(non_camel_case_types)]
pub type gid_t = u32;

#[stable(feature = "raw_ext", since = "1.1.0")]
#[allow(non_camel_case_types)]
pub type pid_t = i32;

#[doc(inline)]
Expand Down

0 comments on commit d14f000

Please sign in to comment.