static MISSING_DEBUG_IMPLEMENTATIONS: &Lint
missing_debug_implementations lint detects missing
fmt::Debug for public types.
#![deny(missing_debug_implementations)] pub struct Foo;
Debug implementation on all types can assist with
debugging, as it provides a convenient way to format and display a
value. Using the
#[derive(Debug)] attribute will automatically
generate a typical implementation, or a custom implementation can be
added by manually implementing the
This lint is “allow” by default because adding
Debug to all types can
have a negative impact on compile time and code size. It also requires
boilerplate to be added to every type, which can be an impediment.