about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.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
commitce4e668e39f710dae60c3d476eb594aebd9da11c (patch)
tree09f71f8255972b682eab960f53874ee15804159b /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent9f6b5de7deaf4dc9e7917370ad09ab85dc23997c (diff)
downloadrust-ce4e668e39f710dae60c3d476eb594aebd9da11c.tar.gz
rust-ce4e668e39f710dae60c3d476eb594aebd9da11c.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/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions