about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-29 11:20:50 +0000
committerbors <bors@rust-lang.org>2022-12-29 11:20:50 +0000
commit0c0b403f19fc6febcd1e36a83fc307ecc11de943 (patch)
tree461a78f80026dd6bec5e42bfca94331c1ccaf9fa /compiler/rustc_parse/src
parent11a338ab6644cf454c45d2b41651900610a55b07 (diff)
parent31b490d8ba8ff60b9d9ee3ccca522629429d9a3f (diff)
downloadrust-0c0b403f19fc6febcd1e36a83fc307ecc11de943.tar.gz
rust-0c0b403f19fc6febcd1e36a83fc307ecc11de943.zip
Auto merge of #106195 - Nilstrieb:no-more-being-clueless-whether-it-really-is-a-literal, r=compiler-errors
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.

Fixes #106191
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions