about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-05-26 17:29:08 -0700
committerMichael Howell <michael@notriddle.com>2023-05-26 18:38:46 -0700
commit1a77d9a54d1fcf8b2a7aa339fb861d642ad4ff5a (patch)
treef78cb9b6f546d1a6ed55173fe733795df0ee95b2 /compiler/rustc_errors/src/snippet.rs
parent1a5f8bce74ee432f7cc3aa131bc3d6920e06de10 (diff)
downloadrust-1a77d9a54d1fcf8b2a7aa339fb861d642ad4ff5a.tar.gz
rust-1a77d9a54d1fcf8b2a7aa339fb861d642ad4ff5a.zip
rustdoc: get unnormalized link destination for suggestions
Fixes #110111

This bug, and the workaround in this commit, is closely linked to
[raphlinus/pulldown-cmark#441], getting offsets of link
components. In particular, pulldown-cmark doesn't provide the
offsets of the contents of a link.

To work around this, rustdoc parser parts of a link definition
itself.

[raphlinus/pulldown-cmark#441]: https://github.com/raphlinus/pulldown-cmark/issues/441
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions