about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2021-03-21 17:29:21 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2021-03-27 13:06:36 +0300
commit5b9bac2ab62063229c419909f89a41890c57f78f (patch)
treec14ccada7ceaaf8f6fd052194fb0c3a79f339f62 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentf811f14006fa46030f1af714f7d640580d3ad822 (diff)
downloadrust-5b9bac2ab62063229c419909f89a41890c57f78f.tar.gz
rust-5b9bac2ab62063229c419909f89a41890c57f78f.zip
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions