bors 70e85d146f Auto merge of #10403 - smoelius:fix-107877, r=Jarcho
Fix rust-lang/rust#107877, etc.

Fix #10009
Fix #10387
Fix https://github.com/rust-lang/rust/issues/107877

The fix is to verify that the associated item's trait is implemented before trying to project the item's type.

r? `@Jarcho`

---

changelog: ICE: [`needless_borrow`]: No longer panics on ambiguous projections
[#10403](https://github.com/rust-lang/rust-clippy/pull/10403)
<!-- changelog_checked -->
2023-03-05 01:15:46 +00:00
..
2023-02-15 21:34:48 +01:00
2023-02-27 21:45:26 +01:00
2023-02-27 21:45:26 +01:00
2023-02-27 21:45:26 +01:00
2023-02-16 13:05:33 +01:00
2023-02-27 21:45:26 +01:00
2023-02-10 19:02:39 +01:00