summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2019-01-23 07:18:32 -0800
committerBryant Mairs <bryant@mai.rs>2019-02-02 16:32:00 -0800
commitfa9cb78b4a04e6cbb12c3edc3efb9486d0f13b37 (patch)
tree0e49f06cd7cc6bd0ea9084e9e8af3040b0012bba /src/lib.rs
parentcd1e16d1afb70ed510565c52d053b40a9f7c6975 (diff)
downloadrust-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.rs2
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;