summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-27 22:15:25 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-28 17:43:18 +0100
commite6c02aad9345925cfed74f86b414c4d0715d381b (patch)
tree98fd6b6b4199045d3c413f5cec5318dbb9b8ce22 /tests/rustdoc-js-std/parser-errors.js
parent1322e476bf5eecfad98f0b200f15c1b46a0d46d2 (diff)
downloadrust-e6c02aad9345925cfed74f86b414c4d0715d381b.tar.gz
Improve heuristics whether `format_args` string is a source literal
Previously, it only checked whether there was _a_ literal at the span of the first argument, not whether the literal actually matched up. This caused issues when a proc macro was generating a different literal with the same span. This requires an annoying special case for literals ending in `\n` because otherwise `println` wouldn't give detailed diagnostics anymore which would be bad.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions