fix(features): Make lints not enable other nightly-requiring features

This commit is contained in:
tormol 2016-10-15 19:08:51 +02:00
parent 86828a5024
commit 835f75e3ba
2 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ suggestions = ["strsim"]
color = ["ansi_term", "libc"] color = ["ansi_term", "libc"]
yaml = ["yaml-rust"] yaml = ["yaml-rust"]
wrap_help = ["libc", "term_size"] wrap_help = ["libc", "term_size"]
lints = ["clippy", "nightly"] lints = ["clippy"] # Requires nightly Rust
nightly = [] # for building with nightly and unstable features nightly = [] # for building with nightly and unstable features
unstable = [] # for building with unstable features on stable Rust unstable = [] # for building with unstable features on stable Rust
debug = [] # for building with debug messages debug = [] # for building with debug messages

View file

@ -381,10 +381,6 @@
//! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT](LICENSE-MIT) file in this repository for more information. //! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT](LICENSE-MIT) file in this repository for more information.
#![crate_type= "lib"] #![crate_type= "lib"]
#![cfg_attr(feature = "nightly", feature(plugin))]
#![cfg_attr(feature = "lints", plugin(clippy))]
#![cfg_attr(feature = "lints", deny(warnings))]
#![cfg_attr(not(any(feature = "lints", feature = "nightly")), deny(unstable_features))]
#![deny( #![deny(
missing_docs, missing_docs,
missing_debug_implementations, missing_debug_implementations,
@ -394,6 +390,10 @@
unused_import_braces, unused_import_braces,
unused_allocation, unused_allocation,
unused_qualifications)] unused_qualifications)]
#![cfg_attr(not(any(feature = "lints", feature = "nightly")), forbid(unstable_features))]
#![cfg_attr(feature = "lints", feature(plugin))]
#![cfg_attr(feature = "lints", plugin(clippy))]
#![cfg_attr(feature = "lints", deny(warnings))]
// clippy false positives, or ones we're ok with... // clippy false positives, or ones we're ok with...
#![cfg_attr(feature = "lints", allow(cyclomatic_complexity))] #![cfg_attr(feature = "lints", allow(cyclomatic_complexity))]
#![cfg_attr(feature = "lints", allow(doc_markdown))] #![cfg_attr(feature = "lints", allow(doc_markdown))]