You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustdoc: improve attribute span handling in diagnostics #150735
In #150721 intra-doc links are rendered for deprecation notes.
Currently the span that is used when reporting an error (e.g. the link cannot be resolved) is a bit too broad. A span containing all doc comments and the deprecated attribute is used as a fallback.
Error reporting would improve slightly if just the span of the deprecation note would be used. That requires that that span is stored, and then used in report_diagnostic.
Activity
GuillaumeGomez commentedon Jan 20, 2026
Fixed in #150721.