Remove PredicateKind
This commit is contained in:
parent
4cb3d6f983
commit
4cd6f85a07
12 changed files with 38 additions and 68 deletions
|
|
@ -115,7 +115,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
|
|||
.filter(|p| !p.is_global())
|
||||
.filter_map(|obligation| {
|
||||
// Note that we do not want to deal with qualified predicates here.
|
||||
let ty::PredicateKind::ForAll(binder) = obligation.predicate.kind();
|
||||
let binder = obligation.predicate.kind();
|
||||
match binder.skip_binder() {
|
||||
ty::PredicateAtom::Trait(pred, _) if !binder.has_escaping_bound_vars() => {
|
||||
if pred.def_id() == sized_trait {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue