From 49be10a8179165d24bbb8eb3490c4ca6f94b42c4 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Fri, 1 Nov 2019 07:42:33 -0700 Subject: Update libc crate to 0.2.66 This change updates the libc crate to version 0.2.66. Import subrepo libc/:libc at 4f11029a68040c90acf771976b019c1ef273a8cd --- libc/src/lib.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libc/src/lib.rs') 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; -- cgit v1.2.1