mk: Move from -D warnings
to #![deny(warnings)]
This commit removes the `-D warnings` flag being passed through the makefiles to all crates to instead be a crate attribute. We want these attributes always applied for all our standard builds, and this is more amenable to Cargo-based builds as well. Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)` attribute currently to match the same semantics we have today
This commit is contained in:
parent
6866f1361d
commit
2273b52023
39 changed files with 49 additions and 20 deletions
|
@ -273,6 +273,7 @@
|
|||
|
||||
#![deny(missing_docs)]
|
||||
#![allow(unused_features)] // std may use features in a platform-specific way
|
||||
#![cfg_attr(not(stage0), deny(warnings))]
|
||||
|
||||
#[cfg(test)] extern crate test;
|
||||
#[cfg(test)] #[macro_use] extern crate log;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue