diff options
author | Bryant Mairs <bryant@mai.rs> | 2019-01-23 07:18:32 -0800 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2019-02-02 16:32:00 -0800 |
commit | fa9cb78b4a04e6cbb12c3edc3efb9486d0f13b37 (patch) | |
tree | 0e49f06cd7cc6bd0ea9084e9e8af3040b0012bba /src/lib.rs | |
parent | cd1e16d1afb70ed510565c52d053b40a9f7c6975 (diff) | |
download | rust-libc-fa9cb78b4a04e6cbb12c3edc3efb9486d0f13b37.tar.gz |
Check for Debug impls for all types
This was not compile-tested on all platforms, but instead all `pub enum`
types had a `Debug` impl derived for them.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 03e78041ab..86ab9b1368 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -156,6 +156,8 @@ #![cfg_attr(feature = "rustc-dep-of-std", no_core)] #![cfg_attr(feature = "rustc-dep-of-std", allow(warnings))] #![cfg_attr(not(any(feature = "use_std", feature = "rustc-dep-of-std")), no_std)] +// Enable lints +#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))] #[cfg(all(not(cross_platform_docs), feature = "use_std"))] extern crate std as core; |