about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/doctest-output.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-23 23:40:29 +0200
committerGitHub <noreply@github.com>2025-09-23 23:40:29 +0200
commitf984966325bbfd81b385a8b8b6d1141059749c96 (patch)
treed37901b53d0ca84eb0b9a15408ded2dad3249261 /tests/rustdoc-ui/doctest/doctest-output.rs
parent7d0c283bbfbd94df02b7459f4facc67ff560263a (diff)
parent2d18c886f5754258109fad2e1e0c3bcca0cc9fa5 (diff)
downloadrust-f984966325bbfd81b385a8b8b6d1141059749c96.tar.gz
rust-f984966325bbfd81b385a8b8b6d1141059749c96.zip
Rollup merge of #146899 - Teapot4195:issue-146847-fix, r=nnethercote
Fix a crash/mislex when more than one frontmatter closing possibility is considered

When the less fortunate recovery path for frontmatters are taken, if the lexer considers more than one possible frontmatter closing possibility, the current index is entirely mis-tracked and can result in bump_bytes landing in the middle of a multichar unicode character.

This fixes it by tracking the actual base index and updating it as it considers additional closing possibilities.

fixes rust-lang/rust#146847
Diffstat (limited to 'tests/rustdoc-ui/doctest/doctest-output.rs')
0 files changed, 0 insertions, 0 deletions