about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-14 19:57:57 +0000
committerbors <bors@rust-lang.org>2020-09-14 19:57:57 +0000
commit41dc3942eb33e8e882b6e4782a9bd9d2b8970647 (patch)
treea1b4335d6ba112f9d8ba5a1e2c8ca89bb49c817d /compiler/rustc_codegen_llvm/src
parentbb0067c75ea82efa8a09213bfba0dc2583ac0a4c (diff)
parentc6f2ddf1cb1e328245da59a4fb42f90403389a07 (diff)
downloadrust-41dc3942eb33e8e882b6e4782a9bd9d2b8970647.tar.gz
rust-41dc3942eb33e8e882b6e4782a9bd9d2b8970647.zip
Auto merge of #75608 - estebank:suggest-boxed-match-exprs, r=lcnr,varkor
More structured suggestions for boxed trait objects instead of impl Trait on non-coerceable tail 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.

Use structured suggestion for `impl T` to `Box<dyn T>`.

Fix https://github.com/rust-lang/rust/issues/69107
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions