mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
0a5d1e8059
rustdoc: Fix ICE when deprecated note is not resolved on the correct `DefId` Supersedes https://github.com/rust-lang/rust/pull/151237. Follow-up of rust-lang/rust#151120. The `span` overlapping approach wasn't good enough so instead we now check if the reexport itself has the `deprecated` attribute, and if so, we resolve the path to the reexport `DefId`, otherwise we resolve it on the reexported item's `DefId`. cc @Zalathar r? @lolbinarycat