diff options
Diffstat (limited to 'libc/src/lib.rs')
-rw-r--r-- | libc/src/lib.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libc/src/lib.rs b/libc/src/lib.rs index 6c2e6c8..0b1496a 100644 --- a/libc/src/lib.rs +++ b/libc/src/lib.rs @@ -14,8 +14,14 @@ //! [pd]: https://rust-lang.github.io/libc/#platform-specific-documentation #![crate_name = "libc"] #![crate_type = "rlib"] -#![cfg_attr(not(feature = "rustc-dep-of-std"), deny(warnings))] -#![allow(bad_style, overflowing_literals, improper_ctypes, unknown_lints)] +#![cfg_attr(libc_deny_warnings, deny(warnings))] +#![allow( + bad_style, + overflowing_literals, + improper_ctypes, + unknown_lints, + redundant_semicolon +)] // Attributes needed when building as part of the standard library #![cfg_attr( feature = "rustc-dep-of-std", @@ -28,6 +34,7 @@ #![no_std] #![cfg_attr(feature = "rustc-dep-of-std", no_core)] #![cfg_attr(target_os = "redox", feature(static_nobundle))] +#![cfg_attr(libc_const_extern_fn, feature(const_extern_fn))] #[macro_use] mod macros; |