Files
rust/tests/rustdoc-ui
Jacob Pratt 862f780953 Rollup merge of #157740 - pbkx:issue-157371-rustdoc-doctest-span, r=lolbinarycat
rustdoc: correct doctest span for trailing semicolon after item

Fixes rust-lang/rust#157371.

When a doctest contains a trailing semicolon after an item, rustdoc can map the
resulting warning to unrelated source following the documentation block rather
than to the semicolon inside the doctest.

Changes only diagnostic span reporting.
2026-06-13 04:06:04 -04:00
..
2025-12-10 12:27:34 +01:00
2025-12-10 12:27:34 +01:00
2025-12-02 18:25:13 +00:00
2025-12-10 12:27:34 +01:00