rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Fully integrate token collection for additional AST structs 2020-09-10 17:58:14 -04:00
rustc_ast_lowering Attach `TokenStream` to `ast::Visibility` 2020-09-10 17:33:06 -04:00
rustc_ast_passes Attach `TokenStream` to `ast::Visibility` 2020-09-10 17:33:06 -04:00
rustc_ast_pretty Fully integrate token collection for additional AST structs 2020-09-10 17:58:14 -04:00
rustc_attr
rustc_builtin_macros Attach tokens to `ast::Stmt` 2020-09-10 17:33:06 -04:00
rustc_codegen_llvm Rollup merge of #74787 - petrochenkov:rustllvm, r=cuviper 2020-09-09 21:02:24 -07:00
rustc_codegen_ssa use push(char) instead of push_str(&str) to add single chars to strings 2020-09-10 13:58:41 +02:00
rustc_data_structures Capitalize safety comments 2020-09-08 22:37:18 -04:00
rustc_driver Auto merge of #73996 - da-x:short-unique-paths, r=petrochenkov 2020-09-03 23:27:45 +00:00
rustc_error_codes Rollup merge of #75984 - kornelski:typeormodule, r=matthewjasper 2020-09-09 15:05:45 -07:00
rustc_errors rustc_{errors,session}: add `delay_good_path_bug` 2020-09-02 10:43:17 +03:00
rustc_expand Attach tokens to `ast::Stmt` 2020-09-10 17:33:06 -04:00
rustc_feature fix tidy, small cleanup 2020-09-10 09:48:02 +02:00
rustc_fs_util
rustc_graphviz Also fixed monospace font for d3-graphviz engine 2020-09-09 14:49:32 -07:00
rustc_hir add track_caller to `local_def_id_to_hir_id` 2020-09-04 09:24:44 +02:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Suggest boxed trait objects in tail `match` and `if` expressions 2020-09-11 17:05:18 -07:00
rustc_interface Attach tokens to `ast::Stmt` 2020-09-10 17:33:06 -04:00
rustc_lexer lexer: Tiny improvement to shebang detection 2020-09-02 00:40:19 +03:00
rustc_lint Change ty.kind to a method 2020-09-04 17:47:51 +02:00
rustc_llvm Move `rustllvm` into `rustc_llvm` 2020-09-09 23:05:43 +03:00
rustc_macros Fix non-determinism in generated format string. 2020-09-09 21:23:25 +10:00
rustc_metadata Attach `TokenStream` to `ast::Visibility` 2020-09-10 17:33:06 -04:00
rustc_middle Suggest boxed trait objects in tail `match` and `if` expressions 2020-09-11 17:05:18 -07:00
rustc_mir Rollup merge of #76567 - matthiaskrgr:clone_on_copy, r=varkor 2020-09-10 12:20:12 -07:00
rustc_mir_build Auto merge of #75573 - Aaron1011:feature/const-mutation-lint, r=oli-obk 2020-09-10 05:54:26 +00:00
rustc_parse Attach tokens to `ast::Stmt` 2020-09-10 17:33:06 -04:00
rustc_parse_format
rustc_passes Auto merge of #75888 - GuillaumeGomez:trait-impl-assoc-const-doc-alias, r=ollie27 2020-09-05 09:35:17 +00:00
rustc_plugin_impl
rustc_privacy Change ty.kind to a method 2020-09-04 17:47:51 +02:00
rustc_query_system
rustc_resolve Attach `TokenStream` to `ast::Visibility` 2020-09-10 17:33:06 -04:00
rustc_save_analysis use push(char) instead of push_str(&str) to add single chars to strings 2020-09-10 13:58:41 +02:00
rustc_serialize
rustc_session use push(char) instead of push_str(&str) to add single chars to strings 2020-09-10 13:58:41 +02:00
rustc_span implement `const_evaluatable_checked` feature MVP 2020-09-10 08:52:02 +02:00
rustc_symbol_mangling Change ty.kind to a method 2020-09-04 17:47:51 +02:00
rustc_target remove redundant clones 2020-09-09 16:32:55 +02:00
rustc_trait_selection fix tidy, small cleanup 2020-09-10 09:48:02 +02:00
rustc_traits kind -> kind() 2020-09-04 19:17:57 -04:00
rustc_ty Change ty.kind to a method 2020-09-04 17:47:51 +02:00
rustc_typeck Suggest boxed trait objects in tail `match` and `if` expressions 2020-09-11 17:05:18 -07:00