Skip to content

Commit 7d662ee

Browse files
Distinguish appending and replacing self ty in predicates
1 parent 86ff11e commit 7d662ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_borrows_for_generic_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ fn replace_types<'tcx>(
417417
{
418418
let projection = projection_predicate
419419
.projection_term
420-
.with_self_ty(cx.tcx, new_ty)
420+
.with_replaced_self_ty(cx.tcx, new_ty)
421421
.expect_ty(cx.tcx)
422422
.to_ty(cx.tcx);
423423

0 commit comments

Comments
 (0)