diff options
| author | Ryan Cumming <etaoins@gmail.com> | 2018-01-15 08:08:22 +1100 |
|---|---|---|
| committer | Ryan Cumming <etaoins@gmail.com> | 2018-01-15 18:09:52 +1100 |
| commit | ecd47a91c7c5eb22fba5fcdec7fa8d78a8bcac51 (patch) | |
| tree | b2c8c75233fe960eb97ab22a0baa207e8609dee2 /src/rustllvm | |
| parent | bb345a0be3ba3fa1970fe02789791c5c72788d8f (diff) | |
| download | rust-ecd47a91c7c5eb22fba5fcdec7fa8d78a8bcac51.tar.gz rust-ecd47a91c7c5eb22fba5fcdec7fa8d78a8bcac51.zip | |
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
Diffstat (limited to 'src/rustllvm')
0 files changed, 0 insertions, 0 deletions
