about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-08-17 22:39:46 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-09-11 17:05:18 -0700
commitfd9133b9c336e55d12bd5da1c610949473844dcf (patch)
treef3ba6b3c91171f432620059dde9d29448d3fc638 /compiler/rustc_codegen_llvm/src
parentc8ee33714becbda0f1deddf1befe0383b4aad135 (diff)
downloadrust-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