Skip to content

Commit

Permalink
Disable the warning for incomplete features
Browse files Browse the repository at this point in the history
Rust's specialization feature is considered incomplete, and recent
compilers print a warning if you try to use it.  But we know that it's
unstable; that's why it's guarded by the "nightly" flag.
  • Loading branch information
asomers committed Aug 6, 2020
1 parent 84b619d commit dcb84d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
### Changed
### Fixed
- Suppressed `incomplete_features` warnings in the latest nightly.
([#161](https://github.com/asomers/mockall/pull/161))

### Removed

## [0.7.2] - 28 July 2020
Expand Down
4 changes: 4 additions & 0 deletions mockall/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,10 @@
//! [`predicates`]: predicate/index.html

#![cfg_attr(feature = "nightly", feature(specialization))]
// Allow the incomplete_feature warning for specialization. We know it's
// incomplete; that's why it's guarded by the "nightly" feature.
#![cfg_attr(feature = "nightly", allow(incomplete_features))]

#![cfg_attr(feature = "nightly", feature(doc_cfg))]
#![deny(intra_doc_link_resolution_failure)]

Expand Down

0 comments on commit dcb84d8

Please sign in to comment.