about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-02-16 10:59:42 +0000
committerbors <bors@rust-lang.org>2025-02-16 10:59:42 +0000
commit23032f31c91f2bb74ba4be20e075fcc929f66527 (patch)
tree5ba26e137192625598a2077fd95c51287b36d4ed /compiler/rustc_parse/src/parser/mod.rs
parent4229b80f506d5c1e6267f27e69f10fa3bd3c8f9e (diff)
parent4d551dd754477bb81ddef0829121ca90c8a8b286 (diff)
downloadrust-23032f31c91f2bb74ba4be20e075fcc929f66527.tar.gz
rust-23032f31c91f2bb74ba4be20e075fcc929f66527.zip
Auto merge of #136363 - notriddle:notriddle/unresolved-link-unused-refdef, r=GuillaumeGomez
rustdoc: improve refdef handling in the unresolved link lint

This commit takes advantage of a feature in pulldown-cmark that makes the list of link definitions available to the consuming application. It produces unresolved link warnings for refdefs that aren't used, and can now produce exact spans for the dest even when it has escapes.

Closes #133150 since this lint would have caught the mistake in that issue, and, along with https://github.com/rust-lang/rust-clippy/pull/13707, most mistakes in this class should produce a warning from one of them.
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
0 files changed, 0 insertions, 0 deletions