rust/compiler
bors 41dc3942eb 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
2020-09-14 19:57:57 +00:00
..
2020-09-11 09:37:51 -07:00
2020-09-11 09:37:51 -07:00
2020-09-10 17:33:06 -04:00
2020-09-14 11:03:47 +02:00
2020-09-13 22:53:51 +02:00
2020-09-09 23:05:43 +03:00
2020-09-04 17:47:51 +02:00
2020-09-13 22:53:51 +02:00
2020-09-09 16:32:55 +02:00