Skip to content

Commit c818e84

Browse files
authored
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.
2 parents 806089a + d14f000 commit c818e84

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/libstd/sys/unix/ext/net.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use libc;
77

88
// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
99
#[cfg(not(unix))]
10+
#[allow(non_camel_case_types)]
1011
mod libc {
1112
pub use libc::c_int;
1213
pub type socklen_t = u32;

src/libstd/sys/unix/ext/raw.rs

+5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@
1111
#![allow(deprecated)]
1212

1313
#[stable(feature = "raw_ext", since = "1.1.0")]
14+
#[allow(non_camel_case_types)]
1415
pub type uid_t = u32;
16+
1517
#[stable(feature = "raw_ext", since = "1.1.0")]
18+
#[allow(non_camel_case_types)]
1619
pub type gid_t = u32;
20+
1721
#[stable(feature = "raw_ext", since = "1.1.0")]
22+
#[allow(non_camel_case_types)]
1823
pub type pid_t = i32;
1924

2025
#[doc(inline)]

0 commit comments

Comments
 (0)