Cleanup
This commit is contained in:
parent
7c3b6a63ad
commit
82569601f2
1 changed files with 1 additions and 2 deletions
|
|
@ -115,8 +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 binder = obligation.predicate.bound_atom();
|
||||
match binder.skip_binder() {
|
||||
match obligation.predicate.bound_atom().skip_binder() {
|
||||
ty::PredicateAtom::Trait(pred, _) if !pred.has_escaping_bound_vars() => {
|
||||
if pred.def_id() == sized_trait {
|
||||
return None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue