Files
rust/tests/rustdoc-ui
Jacob Pratt 9e7a9bad54 Rollup merge of #157561 - notriddle:do-not-destroy-function-name, r=lolbinarycat
rustdoc: do not include extra stuff in span

This change prevents our lints from returning a span with stuff in it that isn't actually part of the doc comment. When that happens, it returns `None` instead.

Fixes https://github.com/rust-lang/rust-clippy/issues/16169, since the bug was reported against the `clippy::doc_paragraphs_missing_punctuation` lint but is actually a bug in `source_span_for_markdown_range_inner`.
2026-07-09 20:09:09 -04:00
..