Fix `unused_trait_names` FP when `as` name is from macro input
Closes rust-lang/rust-clippy#14924
changelog: [unused_trait_names] fix FP when as name is from macro input
r? @dswij
rustbot has assigned @dswij. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
r? samueltardieu
r? clippy
r? clippy
LGTM. @samueltardieu you still have changes requested, I think this is a stale review. I'll wait a day or two before merging, for you to resolve it. But as it is a stale review, I won't keep this PR blocked on it.
Yes, sorry about that, it was stale indeed.