Skip to content

Commit 098f9b5

Browse files
authored
Merge pull request #683 from asomers/unused_features
Fix unused_feature lints triggered by the latest nightly compiler
2 parents 4401e5a + bc41bff commit 098f9b5

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

mockall/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,6 @@
11421142
// incomplete; that's why it's guarded by the "nightly" feature.
11431143
#![cfg_attr(feature = "nightly", allow(incomplete_features))]
11441144

1145-
#![cfg_attr(feature = "nightly", feature(doc_cfg))]
11461145
#![cfg_attr(test, deny(warnings))]
11471146
#![warn(missing_docs)]
11481147

mockall_derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! its reexports via the [`mockall`](https://docs.rs/mockall/latest/mockall)
66
//! crate.
77
8-
#![cfg_attr(feature = "nightly_derive", feature(proc_macro_diagnostic))]
8+
#![cfg_attr(all(feature = "nightly_derive", not(test)), feature(proc_macro_diagnostic))]
99
#![cfg_attr(test, deny(warnings))]
1010
// This lint is unhelpful. See
1111
// https://github.com/rust-lang/rust-clippy/discussions/14256

mockall_double/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! However, it is defined in its own crate so that the bulk of Mockall can
88
//! remain a dev-dependency, instead of a regular dependency.
99
10-
#![cfg_attr(feature = "nightly", feature(proc_macro_diagnostic))]
10+
#![cfg_attr(all(feature = "nightly", not(test)), feature(proc_macro_diagnostic))]
1111
#![cfg_attr(test, deny(warnings))]
1212
extern crate proc_macro;
1313

0 commit comments

Comments
 (0)