Skip to content

Commit

Permalink
Auto merge of rust-lang#103828 - cassaundra:fix-format-args-span2, r=…
Browse files Browse the repository at this point in the history
…cjgillot

Fix incorrect span when using byte-escaped rbrace

Fix rust-lang#103826, a format args span issue introduced in rust-lang#102214.

The current solution for tracking skipped characters made it so that certain situations were ambiguous enough that the original span couldn't be worked out later. This PR improves on the original solution by keeping track of groups of skipped characters using a map, and fixes the previous bug. See an example of this ambiguity in the [previous PR's discussion](rust-lang#102214 (comment)).
  • Loading branch information
bors committed Dec 26, 2022
2 parents 203f529 + b9c7fa0 commit ca03b20
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit ca03b20

Please sign in to comment.