about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-18 01:57:20 +0800
committerGitHub <noreply@github.com>2018-01-18 01:57:20 +0800
commit4cb87899d9a513fd4fab78e632e419758005e051 (patch)
tree60951cf5f0ec168052ddea5854cd18e4e0269024 /src/rustllvm/RustWrapper.cpp
parent233f29190bdd8b641af8f4e5c3a22a1497aa0ad4 (diff)
parentecd47a91c7c5eb22fba5fcdec7fa8d78a8bcac51 (diff)
downloadrust-4cb87899d9a513fd4fab78e632e419758005e051.tar.gz
rust-4cb87899d9a513fd4fab78e632e419758005e051.zip
Rollup merge of #47444 - etaoins:dont-include-bang-in-macro-suggestion, r=estebank
Don't include bang in macro replacement suggestion

When we suggest the replacement for a macro we include the "!" in the suggested replacement but the span only contains the name of the macro itself. Using that replacement would cause a duplicate "!" in the resulting code.

I originally tried to extend the span to be replaced by 1 byte in rust-lang/rust#47424. However, @zackmdavis pointed out that there can be whitespace between the macro name and the bang.

Instead, just remove the bang from the suggested replacement.

Fixes #47418

r? @estebank
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions