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 -->