diff options
| author | Michael Goulet <michael@errs.io> | 2025-07-30 17:48:24 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-07-30 17:48:27 +0000 |
| commit | 7d662eeb935fae3a6c33670ef68ed12eba71fc88 (patch) | |
| tree | 69f09862345602dec4fe0b1b4176b5a02ef2fd46 | |
| parent | 86ff11e729e780f533030208f1c0ab25e52e6f47 (diff) | |
Distinguish appending and replacing self ty in predicates
| -rw-r--r-- | clippy_lints/src/needless_borrows_for_generic_args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/needless_borrows_for_generic_args.rs b/clippy_lints/src/needless_borrows_for_generic_args.rs index 17d251a7bbb..120a4b98a65 100644 --- a/clippy_lints/src/needless_borrows_for_generic_args.rs +++ b/clippy_lints/src/needless_borrows_for_generic_args.rs @@ -417,7 +417,7 @@ fn replace_types<'tcx>( { let projection = projection_predicate .projection_term - .with_self_ty(cx.tcx, new_ty) + .with_replaced_self_ty(cx.tcx, new_ty) .expect_ty(cx.tcx) .to_ty(cx.tcx); |
