Fix invalid "jump-to-def" doc link generation when an item has a `derive` proc-macro
Fixes https://github.com/rust-lang/rust/issues/158050.
The problem is that the proc-macros might generate an impl block `impl $(trait)? for Item` where `Item` then has its span pointing to the current item, overwriting its intra-doc link (hopefully this explanation makes sense ^^').
In short, the proc-macro generates an impl block, the `for Item` makes the code enter `visit_qpath` which in turn calls `handle_path` which will take the span of the last segment of the path (so `Item` here) and use it in the link def "span map".
r? @urgau