Skip to content

Commit 3597ed5

Browse files
authored
Rollup merge of rust-lang#104595 - compiler-errors:poly-existential-predicate, r=lcnr
Add `PolyExistentialPredicate` type alias Wrapping `ExistentialPredicate`s in a binder is very common, and this alias already exists for the `PolyExistential{TraitRef,Projection}` types.
2 parents 80a4699 + a091438 commit 3597ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ fn check_ptr_arg_usage<'tcx>(cx: &LateContext<'tcx>, body: &'tcx Body<'_>, args:
687687
fn matches_preds<'tcx>(
688688
cx: &LateContext<'tcx>,
689689
ty: Ty<'tcx>,
690-
preds: &'tcx [Binder<'tcx, ExistentialPredicate<'tcx>>],
690+
preds: &'tcx [ty::PolyExistentialPredicate<'tcx>],
691691
) -> bool {
692692
let infcx = cx.tcx.infer_ctxt().build();
693693
preds.iter().all(|&p| match cx.tcx.erase_late_bound_regions(p) {

0 commit comments

Comments
 (0)