rust/compiler/rustc_parse_format
Ömer Sinan Ağacan 5b9bac2ab6 format macro argument parsing fix
When the character next to `{}` is "shifted" (when mapping a byte index
in the format string to span) we should avoid shifting the span end
index, so first map the index of `}` to span, then bump the span,
instead of first mapping the next byte index to a span (which causes
bumping the end span too much).

Regression test added.

Fixes #83344
2021-03-27 13:06:36 +03:00
..
src format macro argument parsing fix 2021-03-27 13:06:36 +03:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00