diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-18 21:29:26 +0000 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-11-25 00:04:54 -0300 |
| commit | 53f78ae0f3ee454b5178aaaedf620d961dbbbb25 (patch) | |
| tree | e8b8c420ec80773b7fa691cb0bfd84107793a1c8 | |
| parent | 2ad5e486f6a6c98211b250563eb4c495dbde07c7 (diff) | |
| download | rust-53f78ae0f3ee454b5178aaaedf620d961dbbbb25.tar.gz rust-53f78ae0f3ee454b5178aaaedf620d961dbbbb25.zip | |
Simplify a bunch of trait ref obligation creations
| -rw-r--r-- | clippy_lints/src/ptr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/ptr.rs b/clippy_lints/src/ptr.rs index 5420a0e782e..8c4cff66f55 100644 --- a/clippy_lints/src/ptr.rs +++ b/clippy_lints/src/ptr.rs @@ -698,9 +698,8 @@ fn matches_preds<'tcx>( cx.tcx, ObligationCause::dummy(), cx.param_env, - cx.tcx.mk_predicate(Binder::bind_with_vars( + cx.tcx.mk_predicate(Binder::dummy( PredicateKind::Projection(p.with_self_ty(cx.tcx, ty)), - List::empty(), )), )), ExistentialPredicate::AutoTrait(p) => infcx |
