Simplify some impl source candidates
This commit is contained in:
parent
1704481bfa
commit
9e68b6f505
6 changed files with 18 additions and 81 deletions
|
@ -172,7 +172,7 @@ impl Qualif for NeedsNonConstDrop {
|
|||
|
||||
if !matches!(
|
||||
impl_src,
|
||||
ImplSource::ConstDestruct(_) | ImplSource::Param(_, ty::BoundConstness::ConstIfConst)
|
||||
ImplSource::Builtin(_) | ImplSource::Param(_, ty::BoundConstness::ConstIfConst)
|
||||
) {
|
||||
// If our const destruct candidate is not ConstDestruct or implied by the param env,
|
||||
// then it's bad
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue