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>2022-06-24 16:43:46 +0900
committerGitHub <noreply@github.com>2022-06-24 16:43:46 +0900
commit964fc41b8986c3631e85decbadea3f9f40425811 (patch)
treeecb256d5d7b511b0a1953e524f27588449c8bf21 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent33eb3c05c54b306afea341dd233671a9f039156f (diff)
parentd15fed79b84c621b42699442ccf99563a6bc6881 (diff)
downloadrust-964fc41b8986c3631e85decbadea3f9f40425811.tar.gz
rust-964fc41b8986c3631e85decbadea3f9f40425811.zip
Rollup merge of #98280 - compiler-errors:better-call-closure-on-type-err, r=estebank
Improve suggestion for calling fn-like expr on type mismatch

1.) Suggest calling values of with RPIT types (and probably TAIT) when we expect `Ty` and have `impl Fn() -> Ty`
2.) Suggest calling closures even when they're not assigned to a local variable first
3.) Drive-by fix of a pretty-printing bug (`impl Fn()-> Ty` => `impl Fn() -> Ty`)

r? ```@estebank```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions