Fix remaining dogfood errors
Except for the missing docs ones
This commit is contained in:
parent
588367b62e
commit
c7c2036cb9
2 changed files with 3 additions and 5 deletions
|
@ -964,7 +964,7 @@ Released 2020-11-19
|
||||||
[#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
|
[#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
|
||||||
* [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
|
* [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
|
||||||
[#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
|
[#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
|
||||||
* [`invalid_atomic_ordering`]: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
|
* `invalid_atomic_ordering`: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
|
||||||
[#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
|
[#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
|
||||||
* Avoid [`redundant_pattern_matching`] triggering in macros
|
* Avoid [`redundant_pattern_matching`] triggering in macros
|
||||||
[#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
|
[#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
|
||||||
|
@ -1451,7 +1451,7 @@ Released 2020-03-12
|
||||||
* [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
|
* [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
|
||||||
* [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
|
* [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
|
||||||
* [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
|
* [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
|
||||||
* [`invalid_atomic_ordering`] [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
|
* `invalid_atomic_ordering` [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
|
||||||
* [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
|
* [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
|
||||||
|
|
||||||
### Moves and Deprecations
|
### Moves and Deprecations
|
||||||
|
|
|
@ -36,9 +36,7 @@ pub fn is_min_const_fn(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>, msrv: Option<&Ru
|
||||||
ty::PredicateKind::ObjectSafe(_) => panic!("object safe predicate on function: {:#?}", predicate),
|
ty::PredicateKind::ObjectSafe(_) => panic!("object safe predicate on function: {:#?}", predicate),
|
||||||
ty::PredicateKind::ClosureKind(..) => panic!("closure kind predicate on function: {:#?}", predicate),
|
ty::PredicateKind::ClosureKind(..) => panic!("closure kind predicate on function: {:#?}", predicate),
|
||||||
ty::PredicateKind::Subtype(_) => panic!("subtype predicate on function: {:#?}", predicate),
|
ty::PredicateKind::Subtype(_) => panic!("subtype predicate on function: {:#?}", predicate),
|
||||||
ty::PredicateKind::Coerce(_) => {
|
ty::PredicateKind::Coerce(_) => panic!("coerce predicate on function: {:#?}", predicate),
|
||||||
panic!("coerce predicate on function: {:#?}", predicate)
|
|
||||||
},
|
|
||||||
ty::PredicateKind::Trait(pred) => {
|
ty::PredicateKind::Trait(pred) => {
|
||||||
if Some(pred.def_id()) == tcx.lang_items().sized_trait() {
|
if Some(pred.def_id()) == tcx.lang_items().sized_trait() {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue