1
Fork 0
rust/compiler/rustc_middle/src
Esteban Küber fd9133b9c3 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.
2020-09-11 17:05:18 -07:00
..
dep_graph
hir
ich
infer
middle pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
mir Auto merge of #75573 - Aaron1011:feature/const-mutation-lint, r=oli-obk 2020-09-10 05:54:26 +00:00
query pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
traits Suggest boxed trait objects in tail match and if expressions 2020-09-11 17:05:18 -07:00
ty Fix documentation for TyCtxt::all_impls 2020-09-06 12:10:46 +02:00
util
arena.rs
lib.rs datastructures: replace once_cell crate with an impl from std 2020-08-30 20:06:14 +01:00
lint.rs
macros.rs
tests.rs