about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-09-19 17:31:35 +0900
committerGitHub <noreply@github.com>2021-09-19 17:31:35 +0900
commit441046af978c99e777aacd98d0efc559d72f2195 (patch)
tree4e6b13eadcf2df1ef1078ea1ba5468042a0dc0f7 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parente4dbe272351627380a9cdad78164d5e672c773fb (diff)
parent68147ebd603129c9f2c56bc47a5d2417a5df1777 (diff)
downloadrust-441046af978c99e777aacd98d0efc559d72f2195.tar.gz
rust-441046af978c99e777aacd98d0efc559d72f2195.zip
Rollup merge of #89055 - Kobzol:wrapped-method-expr-call-parens, r=wesleywiser
Suggest better place to add call parentheses for method expressions wrapped in parentheses

I wanted to improve the suggestion a bit to both remove the wrapping parentheses **and** add call parentheses by both calling `suggest_method_call` and using `multipart_suggestion`. But I very quickly ran into a problem where multiple overlapping machine applicable suggestions cannot be properly applied together. So I applied the suggestion from the issue and only added the call parentheses directly after the expression.

Fixes: https://github.com/rust-lang/rust/issues/89044
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions