rust/compiler
Matthias Krüger aac91f75e3
Rollup merge of #131699 - compiler-errors:better-errors-for-projections, r=lcnr
Try to improve error messages involving aliases in the solver

1. Treat aliases as rigid only if it may not be defined and it's well formed (i.e. for projections, its trait goal is satisfied).
2. Record goals that are related to alias normalization under a new `GoalKind`, so we can look into them in the `BestObligation` visitor.
3. Try to deduplicate errors due to self types of goals that are un-normalizable aliases.

r? lcnr
2024-10-16 19:18:32 +02:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_ast_ir
rustc_ast_lowering Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_ast_passes Auto merge of #130654 - lcnr:stabilize-coherence-again, r=compiler-errors 2024-10-15 14:21:34 +00:00
rustc_ast_pretty Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_attr Handle gracefully true/false in cfg(target(..)) compact 2024-10-16 09:41:49 +02:00
rustc_baked_icu_data
rustc_borrowck Auto merge of #131481 - nnethercote:rm-GenKillSet, r=cjgillot 2024-10-16 09:45:05 +00:00
rustc_builtin_macros Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm llvm: Match aarch64 data layout to new LLVM layout 2024-10-16 01:16:44 +00:00
rustc_codegen_ssa Rollup merge of #131521 - jdonszelmann:rc, r=joboet 2024-10-15 12:33:36 -04:00
rustc_const_eval Auto merge of #131481 - nnethercote:rm-GenKillSet, r=cjgillot 2024-10-16 09:45:05 +00:00
rustc_data_structures Auto merge of #131422 - GnomedDev:smallvec-predicate-obligations, r=compiler-errors 2024-10-16 04:06:14 +00:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_feature Auto merge of #129458 - EnzymeAD:enzyme-frontend, r=jieyouxu 2024-10-15 01:30:01 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_hir_analysis Rollup merge of #131754 - compiler-errors:bivariance-bivariance, r=estebank 2024-10-16 12:03:43 +02:00
rustc_hir_pretty Move trait bound modifiers into hir::PolyTraitRef 2024-10-14 09:20:38 -04:00
rustc_hir_typeck Rollup merge of #131381 - Nadrieril:min-match-ergonomics, r=pnkfelix 2024-10-16 19:18:30 +02:00
rustc_incremental
rustc_index
rustc_index_macros Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
rustc_infer Swap PredicateObligation to ThinVec 2024-10-12 15:17:16 +01:00
rustc_interface stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
rustc_lexer
rustc_lint Rollup merge of #131652 - compiler-errors:modifiers, r=Nadrieril,jieyouxu 2024-10-15 05:11:37 +02:00
rustc_lint_defs Rollup merge of #131381 - Nadrieril:min-match-ergonomics, r=pnkfelix 2024-10-16 19:18:30 +02:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata
rustc_middle Rollup merge of #131381 - Nadrieril:min-match-ergonomics, r=pnkfelix 2024-10-16 19:18:30 +02:00
rustc_mir_build Rollup merge of #131381 - Nadrieril:min-match-ergonomics, r=pnkfelix 2024-10-16 19:18:30 +02:00
rustc_mir_dataflow Add defaults for Analysis::apply_{call_return_effect,terminator_effect}. 2024-10-14 16:35:47 +11:00
rustc_mir_transform Remove ResultsCursor::contains. 2024-10-14 16:35:28 +11:00
rustc_monomorphize Add fast-path when computing the default visibility 2024-10-14 16:37:54 +02:00
rustc_next_trait_solver Register a dummy candidate for failed structural normalization during candiate assembly 2024-10-15 20:42:17 -04:00
rustc_parse Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_parse_format Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
rustc_passes Auto merge of #131724 - matthiaskrgr:rollup-ntgkkk8, r=matthiaskrgr 2024-10-15 05:02:38 +00:00
rustc_pattern_analysis
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve Auto merge of #131723 - matthiaskrgr:rollup-krcslig, r=matthiaskrgr 2024-10-15 11:50:31 +00:00
rustc_sanitizers
rustc_serialize Stabilize const_option 2024-10-12 17:07:13 -04:00
rustc_session stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
rustc_smir
rustc_span Auto merge of #129458 - EnzymeAD:enzyme-frontend, r=jieyouxu 2024-10-15 01:30:01 +00:00
rustc_symbol_mangling
rustc_target llvm: Match aarch64 data layout to new LLVM layout 2024-10-16 01:16:44 +00:00
rustc_trait_selection Rollup merge of #131699 - compiler-errors:better-errors-for-projections, r=lcnr 2024-10-16 19:18:32 +02:00
rustc_traits Swap Vec<PredicateObligation> to type alias 2024-10-12 15:17:08 +01:00
rustc_transmute
rustc_ty_utils
rustc_type_ir Rollup merge of #131699 - compiler-errors:better-errors-for-projections, r=lcnr 2024-10-16 19:18:32 +02:00
rustc_type_ir_macros
stable_mir Rollup merge of #131700 - practicalrs:fix_match_same_arms, r=celinval 2024-10-16 12:03:41 +02:00