rust/compiler
Dylan DPC 400b03ac3c
Rollup merge of #107098 - compiler-errors:pat-mismatch-fn-call, r=lcnr
Suggest function call on pattern type mismatch

Fixes #101208

This could definitely be generalized to support more suggestions in pattern matches. We can't use all of [`FnCtxt::emit_type_mismatch_suggestions`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_typeck/fn_ctxt/struct.FnCtxt.html#method.emit_type_mismatch_suggestions), but it's on my to-do list to play around with more suggestions that would be productive in this position.
2023-02-11 11:15:55 +05:30
..
rustc Add a new rustc_driver dylib to rexport rustc_driver_impl 2023-02-02 07:34:41 +01:00
rustc_abi also do not add noalias on not-Unpin Box 2023-02-06 12:17:41 +01:00
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #107544 - nnethercote:improve-TokenCursor, r=petrochenkov 2023-02-03 23:04:51 +05:30
rustc_ast_lowering remove unused imports 2023-02-06 17:40:18 +03:00
rustc_ast_passes Autoderive ExternBlockSuggestion 2023-01-19 13:52:15 +01:00
rustc_ast_pretty Expand const-if-const trait bounds correctly 2023-02-07 21:00:12 +00:00
rustc_attr Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_baked_icu_data
rustc_borrowck Auto merge of #107652 - estebank:re_error, r=oli-obk 2023-02-10 10:10:12 +00:00
rustc_builtin_macros Extend BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE. 2023-02-09 11:47:12 +11:00
rustc_codegen_cranelift Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09 2023-02-09 12:38:16 +01:00
rustc_codegen_gcc session: diagnostic migration lint on more fns 2023-01-30 17:11:35 +00:00
rustc_codegen_llvm Auto merge of #102963 - ilammy:xray-basic, r=estebank 2023-02-10 00:02:43 +00:00
rustc_codegen_ssa remove unused imports 2023-02-06 17:40:18 +03:00
rustc_const_eval Avoid some tls::with calls. 2023-02-09 15:28:04 +11:00
rustc_data_structures Make an optimal cold path for query_cache_hit 2023-02-06 15:22:12 +01:00
rustc_driver Remove unneeded extern crate 2023-02-02 07:47:39 +01:00
rustc_driver_impl Rollup merge of #107836 - chenyukang:yukang/fix-107822, r=oli-obk 2023-02-10 15:28:47 +01:00
rustc_error_codes Add extended error message for E0523 2023-02-06 06:58:30 -05:00
rustc_error_messages Cleanup typos in en_US/borrowck.ftl 2023-02-10 02:22:08 -08:00
rustc_errors test: snapshot for derive suggestion in diff files 2023-02-09 22:28:53 +08:00
rustc_expand Add ~const bounds trait bounds when using derive_const 2023-02-07 21:00:12 +00:00
rustc_feature Auto merge of #107297 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2023-01-31 19:24:29 +00:00
rustc_fs_util
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Rename PointerSized to PointerLike 2023-02-07 19:05:53 +00:00
rustc_hir_analysis Use ErrorGuaranteed more in ReError 2023-02-09 10:38:45 +00:00
rustc_hir_pretty Use Mutability::{is_mut, is_not} 2023-01-30 12:26:26 +00:00
rustc_hir_typeck Suggest fn call on pattern type mismatch 2023-02-10 18:18:08 +00:00
rustc_incremental incremental: migrate diagnostics 2023-01-30 17:11:35 +00:00
rustc_index Fix IndexVec::drain_enumerated 2023-01-19 15:25:33 +00:00
rustc_infer Rollup merge of #107789 - jieyouxu:issue-107745, r=lcnr 2023-02-10 15:28:47 +01:00
rustc_interface Rollup merge of #107831 - nnethercote:query-refactoring, r=oli-obk 2023-02-10 06:09:57 +01:00
rustc_lexer Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_lint Auto merge of #103761 - chenyukang:yukang/fix-103320-must-use, r=compiler-errors 2023-02-06 12:57:37 +00:00
rustc_lint_defs Extend BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE. 2023-02-09 11:47:12 +11:00
rustc_llvm llvm-16: Use Triple.h from new header location. 2023-02-07 06:51:58 -08:00
rustc_log fix rustc_log doctest 2023-02-10 15:07:55 +01:00
rustc_macros Forbid #[suggestion_*(...)] on Vecs 2023-02-01 21:49:45 +01:00
rustc_metadata Rollup merge of #100599 - MatthewPeterKelly:add-E0523-description-and-test, r=compiler-errors,GuillaumeGomez 2023-02-07 17:57:13 +01:00
rustc_middle Auto merge of #107652 - estebank:re_error, r=oli-obk 2023-02-10 10:10:12 +00:00
rustc_mir_build remove unused imports 2023-02-06 17:40:18 +03:00
rustc_mir_dataflow Rollup merge of #107271 - Zeegomo:drop-rmw, r=oli-obk 2023-02-08 18:32:41 +01:00
rustc_mir_transform Auto merge of #85158 - JulianKnodt:array_const_val, r=cjgillot 2023-02-10 21:49:31 +00:00
rustc_monomorphize Auto merge of #100754 - davidtwco:translation-incremental, r=compiler-errors 2023-01-31 10:20:58 +00:00
rustc_parse Rollup merge of #107446 - clubby789:rustc-parse-diag-migrate, r=compiler-errors 2023-02-09 11:21:57 +01:00
rustc_parse_format Rollup merge of #106805 - madsravn:master, r=compiler-errors 2023-02-03 06:30:23 +01:00
rustc_passes rustc_passes: remove huge error imports 2023-02-05 03:47:58 +01:00
rustc_plugin_impl
rustc_privacy remove unused imports 2023-02-06 17:40:18 +03:00
rustc_query_impl Simplify tls::enter_context. 2023-02-09 15:25:45 +11:00
rustc_query_system Auto merge of #107644 - Zoxc:query-cache-tweak, r=cjgillot 2023-02-08 16:59:18 +00:00
rustc_resolve Auto merge of #107652 - estebank:re_error, r=oli-obk 2023-02-10 10:10:12 +00:00
rustc_save_analysis Review changes 2023-01-31 07:54:01 +00:00
rustc_serialize
rustc_session Rollup merge of #107043 - Nilstrieb:true-and-false-is-false, r=wesleywiser 2023-02-10 06:09:56 +01:00
rustc_smir
rustc_span Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk 2023-02-08 07:13:26 +01:00
rustc_symbol_mangling Change to ReError(ErrorGuaranteed) 2023-02-09 10:26:49 +00:00
rustc_target XRay support flag in TargetOptions 2023-02-09 12:28:01 +09:00
rustc_trait_selection Rollup merge of #105019 - chenyukang:yukang/fix-104961-borrow, r=cjgillot 2023-02-11 11:15:54 +05:30
rustc_traits Auto merge of #107652 - estebank:re_error, r=oli-obk 2023-02-10 10:10:12 +00:00
rustc_transmute Also remove #![feature(control_flow_enum)] where possible 2023-01-18 10:22:21 -08:00
rustc_ty_utils Auto merge of #106180 - RalfJung:dereferenceable-generators, r=nbdd0121 2023-02-07 03:35:10 +00:00
rustc_type_ir Fix RegionKind: PartialEq to account for ReError 2023-02-09 10:26:50 +00:00