about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-10-25 14:31:01 +0200
committerGitHub <noreply@github.com>2018-10-25 14:31:01 +0200
commit6dfeb7602fed2678b5f18b1fb5fcb3c1e8c04ce2 (patch)
tree24925872284ae012ea87fe72c3816ed080021823 /src/rustllvm/RustWrapper.cpp
parentf81e47f85e539a01af95dba2e16c861058803e4d (diff)
parent475be10dbd5bef7c37d58f2d5f1905123cb6e19e (diff)
downloadrust-6dfeb7602fed2678b5f18b1fb5fcb3c1e8c04ce2.tar.gz
rust-6dfeb7602fed2678b5f18b1fb5fcb3c1e8c04ce2.zip
Rollup merge of #55138 - zackmdavis:the_paren_trap, r=pnkfelix
in which unused-parens suggestions heed what the user actually wrote

Aaron Hill pointed out that unnecessary parens around a macro call (paradigmatically, `format!`) yielded a suggestion of hideous macro-expanded code. `span_to_snippet` is fallable as far as the type system is concerned, so the pretty-printing can live on in the oft-neglected `else` branch.

Resolves #55109.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions