diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-08-17 22:39:46 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-09-11 17:05:18 -0700 |
| commit | fd9133b9c336e55d12bd5da1c610949473844dcf (patch) | |
| tree | f3ba6b3c91171f432620059dde9d29448d3fc638 /compiler/rustc_codegen_llvm/src | |
| parent | c8ee33714becbda0f1deddf1befe0383b4aad135 (diff) | |
| download | rust-fd9133b9c336e55d12bd5da1c610949473844dcf.tar.gz rust-fd9133b9c336e55d12bd5da1c610949473844dcf.zip | |
Suggest boxed trait objects in tail `match` and `if` expressions
When encountering a `match` or `if` as a tail expression where the different arms do not have the same type *and* the return type of that `fn` is an `impl Trait`, check whether those arms can implement `Trait` and if so, suggest using boxed trait objects.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
