about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-18 23:23:02 +0100
committerGitHub <noreply@github.com>2022-02-18 23:23:02 +0100
commitf8b83a2aa60d60b60386ef460071261963c8b988 (patch)
treec60991bbdead5918a03b62c836fa29c859e8eed2 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb17226fcc11587fed612631be372a5b4cb89988a (diff)
parent4bed7485da0706dfc30f019f94f07fcdf5122358 (diff)
downloadrust-f8b83a2aa60d60b60386ef460071261963c8b988.tar.gz
rust-f8b83a2aa60d60b60386ef460071261963c8b988.zip
Rollup merge of #89892 - Nilstrieb:suggest-return-impl-trait, r=jackh726
Suggest `impl Trait` return type when incorrectly using a generic return type

Address #85991

When there is a type mismatch error and the return type is generic, and that generic parameter is not used in the function parameters, suggest replacing that generic with the `impl Trait` syntax.

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