rust/compiler
Matthias Krüger 7bfccb3d7f
Rollup merge of #108687 - compiler-errors:reformulate-point_at_expr_source_of_inferred_type, r=oli-obk
Reformulate `point_at_expr_source_of_inferred_type` to be more accurate

Be more accurate when deducing where along the several usages of a binding it is constrained to be some type that is incompatible with an expectation.

This also renames the method to `note_source_of_type_mismatch_constraint` because I prefer that name, though I guess I can revert that. (Also drive-by rename `note_result_coercion` -> `suggest_coercing_result_via_try_operator`, because it's suggesting, not noting!)

This PR is (probably?) best reviewed per commit, but it does regress a bit only to fix it later on, so it could also be reviewed as a whole if that makes the final results more clear.

r? `@estebank`
2023-04-14 21:11:10 +02:00
..
rustc fix link 2023-03-11 10:53:47 -06:00
rustc_abi Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena Allow clippy::from_mut_ref 2023-04-09 22:29:56 +02:00
rustc_ast Rollup merge of #110203 - compiler-errors:rtn-dots, r=eholk 2023-04-12 20:56:22 +02:00
rustc_ast_lowering Rollup merge of #110203 - compiler-errors:rtn-dots, r=eholk 2023-04-12 20:56:22 +02:00
rustc_ast_passes Rollup merge of #110237 - oli-obk:impl_trait_in_assoc_tys, r=jackh726 2023-04-12 20:56:24 +02:00
rustc_ast_pretty Remove .. from return type notation 2023-04-10 22:19:46 +00:00
rustc_attr Bless tidy 2023-03-27 18:58:07 +00:00
rustc_baked_icu_data update ICU4X to 1.1.0 2023-02-04 22:28:59 +01:00
rustc_borrowck Remove ToRegionVid. 2023-04-13 12:20:41 +10:00
rustc_builtin_macros Auto merge of #110252 - matthiaskrgr:rollup-ovaixra, r=matthiaskrgr 2023-04-12 22:19:29 +00:00
rustc_codegen_cranelift Rename Abort terminator to Terminate 2023-04-06 09:34:16 +01:00
rustc_codegen_gcc Auto merge of #109989 - ids1024:m68k-asm, r=Amanieu 2023-04-13 11:41:57 +00:00
rustc_codegen_llvm Add inline assembly support for m68k 2023-04-12 17:58:15 -07:00
rustc_codegen_ssa Auto merge of #109466 - davidlattimore:inline-arg-via-var-debug-info, r=wesleywiser 2023-04-13 01:51:27 +00:00
rustc_const_eval Implement Copy for LocationDetail 2023-04-13 18:04:30 +00:00
rustc_data_structures Use SSO_ARRAY_SIZE instead of 8 in SsoHashMap impl 2023-04-11 11:02:01 +00:00
rustc_driver Remove unneeded extern crate 2023-02-02 07:47:39 +01:00
rustc_driver_impl Rollup merge of #110072 - joshtriplett:stabilize-is-terminal, r=Mark-Simulacrum 2023-04-13 11:21:00 +02:00
rustc_error_codes Make "unneccesary visibility qualifier" error much more clear 2023-04-03 21:52:27 -05:00
rustc_error_messages Stabilize a portion of 'once_cell' 2023-03-29 18:04:44 -04:00
rustc_errors Rollup merge of #110072 - joshtriplett:stabilize-is-terminal, r=Mark-Simulacrum 2023-04-13 11:21:00 +02:00
rustc_expand Rollup merge of #110222 - lovelymono:rustc-expand-mbe-diagnostic, r=davidtwco 2023-04-12 20:56:24 +02:00
rustc_feature Rollup merge of #110237 - oli-obk:impl_trait_in_assoc_tys, r=jackh726 2023-04-12 20:56:24 +02:00
rustc_fs_util Add try_canonicalize to rustc_fs_util and use it over fs::canonicalize 2023-03-16 21:50:23 +01:00
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_hir_analysis Rollup merge of #110220 - lcnr:regionzz, r=compiler-errors 2023-04-13 11:21:05 +02:00
rustc_hir_pretty Remove identity casts 2023-04-09 23:22:14 +02:00
rustc_hir_typeck Rollup merge of #108687 - compiler-errors:reformulate-point_at_expr_source_of_inferred_type, r=oli-obk 2023-04-14 21:11:10 +02:00
rustc_incremental Check for escape sequences in Fluent resources 2023-03-29 18:34:29 +01:00
rustc_index Fix some clippy::complexity 2023-04-09 23:22:14 +02:00
rustc_infer Rollup merge of #110220 - lcnr:regionzz, r=compiler-errors 2023-04-13 11:21:05 +02:00
rustc_interface Migrate sess.opts.tests uses to sess.is_test_crate() 2023-04-09 21:37:31 +02:00
rustc_lexer Revert "Don't recover lifetimes/labels containing emojis as character literals" 2023-04-10 06:52:41 +00:00
rustc_lint Rollup merge of #110153 - DaniPopes:compiler-typos, r=Nilstrieb 2023-04-12 20:56:21 +02:00
rustc_lint_defs Fix typos in compiler 2023-04-10 22:02:52 +02:00
rustc_llvm Rollup merge of #96971 - zhaixiaojuan:master, r=wesleywiser 2023-04-11 20:28:45 -07:00
rustc_log Stabilize IsTerminal 2023-04-10 17:24:23 +09:00
rustc_macros Auto merge of #110092 - clubby789:builtin-macros-translatable, r=compiler-errors 2023-04-11 14:40:54 +00:00
rustc_metadata resolve: Pre-compute non-reexport module children 2023-04-12 15:22:03 +03:00
rustc_middle Rollup merge of #110299 - kylematsuda:earlybinder-impl-subject, r=compiler-errors 2023-04-14 07:58:42 +02:00
rustc_mir_build Auto merge of #109466 - davidlattimore:inline-arg-via-var-debug-info, r=wesleywiser 2023-04-13 01:51:27 +00:00
rustc_mir_dataflow Fix typos in compiler 2023-04-10 22:02:52 +02:00
rustc_mir_transform Rollup merge of #110283 - saethlin:check-panics-before-alignment, r=bjorn3 2023-04-13 21:58:39 +02:00
rustc_monomorphize Fix typos in compiler 2023-04-10 22:02:52 +02:00
rustc_parse Auto merge of #110252 - matthiaskrgr:rollup-ovaixra, r=matthiaskrgr 2023-04-12 22:19:29 +00:00
rustc_parse_format Fix typos in compiler 2023-04-10 22:02:52 +02:00
rustc_passes impl reviewer feedback 2023-04-13 23:39:14 +12:00
rustc_plugin_impl expand: Pass ast::Crate by reference to AST transforming passes 2023-03-23 14:20:55 +04:00
rustc_privacy resolve: Pre-compute non-reexport module children 2023-04-12 15:22:03 +03:00
rustc_query_impl Auto merge of #110012 - matthiaskrgr:rollup-sgmm5xv, r=matthiaskrgr 2023-04-06 18:48:42 +00:00
rustc_query_system Auto merge of #109935 - michaelwoerister:fix-feed-in-eval-always, r=cjgillot 2023-04-12 11:16:35 +00:00
rustc_resolve Auto merge of #110160 - petrochenkov:notagain2, r=cjgillot 2023-04-14 01:14:36 +00:00
rustc_serialize Remove f32 & f64 from MemDecoder/MemEncoder 2023-04-06 00:54:07 -07:00
rustc_session Implement Copy for LocationDetail 2023-04-13 18:04:30 +00:00
rustc_smir Add a stable MIR way to get the main function 2023-04-14 07:28:56 +00:00
rustc_span Auto merge of #109989 - ids1024:m68k-asm, r=Amanieu 2023-04-13 11:41:57 +00:00
rustc_symbol_mangling Remove index from BrAnon 2023-04-06 23:01:40 -04:00
rustc_target Auto merge of #109989 - ids1024:m68k-asm, r=Amanieu 2023-04-13 11:41:57 +00:00
rustc_trait_selection Rollup merge of #110299 - kylematsuda:earlybinder-impl-subject, r=compiler-errors 2023-04-14 07:58:42 +02:00
rustc_traits Remove u32 on BoundTyKind::Anon 2023-04-06 23:08:04 -04:00
rustc_transmute Improve safe transmute error reporting 2023-04-13 21:57:08 +00:00
rustc_ty_utils Update ty_utils_never_to_any_not_supported diagnostic message 2023-04-10 22:03:08 +02:00
rustc_type_ir Fix typos in compiler 2023-04-10 22:02:52 +02:00