rust/compiler
Jacob Pratt e4375da4e8
Rollup merge of #151863 - amandasystems:streamline-borrow-error-handling, r=lcnr
Borrowck: simplify diagnostics for placeholders

This folds the call to `region_from_element` into `RegionInferenceContext`, and simplifies the error variant for this case to only talk about regions as opposed to elements. This is the only case where a `RegionElement` leaks out of region inference, so now they can be considered internal to region inference (though that currently isn't expressed). It also clarifies the type information on the methods called to emphasise the fact that they only ever use placeholder regions in the diagnostics completely ignore any other element.

It also adds a bunch of FIXMEs to some fishy statements that conjure universes from what seems like arbitrary integers.

This was lifted from rust-lang/rust#142623.

r? @lcnr
2026-02-12 00:41:07 -05:00
..
rustc Return ExitCode from rustc_driver::main 2026-01-23 21:04:27 +00:00
rustc_abi Fix passing/returning structs with the 64-bit SPARC ABI 2026-02-10 12:39:45 +01:00
rustc_arena Replace some feature(core_intrinsics) with stable hints 2026-02-08 18:21:47 +11:00
rustc_ast Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_ast_ir Implement &pin patterns and ref pin bindings 2025-11-10 09:57:08 +08:00
rustc_ast_lowering Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_ast_passes Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_ast_pretty Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_attr_parsing Rollup merge of #151152 - nik-contrib:helper_attr_builtin, r=chenyukang 2026-02-12 00:41:06 -05:00
rustc_baked_icu_data Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_borrowck Rollup merge of #151863 - amandasystems:streamline-borrow-error-handling, r=lcnr 2026-02-12 00:41:07 -05:00
rustc_builtin_macros Auto merge of #152412 - JonathanBrouwer:rollup-hShycIY, r=JonathanBrouwer 2026-02-10 02:25:24 +00:00
rustc_codegen_cranelift Convert to inline diagnostics in all codegen backends 2026-02-04 13:12:49 +00:00
rustc_codegen_gcc Rollup merge of #150768 - bjorn3:llvm_intrinsic_no_fn_abi, r=wesleywiser 2026-02-12 00:41:06 -05:00
rustc_codegen_llvm Rollup merge of #150768 - bjorn3:llvm_intrinsic_no_fn_abi, r=wesleywiser 2026-02-12 00:41:06 -05:00
rustc_codegen_ssa Port rustc_expected_cgu_reuse to the new attribute parser 2026-02-10 10:10:38 +01:00
rustc_const_eval Auto merge of #152324 - Keith-Cancel:mgca4, r=BoxyUwU 2026-02-09 22:37:29 +00:00
rustc_data_structures Replace some feature(core_intrinsics) with stable hints 2026-02-08 18:21:47 +11:00
rustc_driver Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_driver_impl Rollup merge of #152250 - JonathanBrouwer:convert_finish, r=jdonszelmann 2026-02-08 19:15:25 +01:00
rustc_error_codes Fix tidy formatting manually for E0423.md 2026-01-31 10:46:58 +05:30
rustc_error_messages Remove SubdiagMessage in favour of the identical DiagMessage 2026-02-10 09:13:45 +00:00
rustc_errors Remove SubdiagMessage in favour of the identical DiagMessage 2026-02-10 09:13:45 +00:00
rustc_expand Rollup merge of #152431 - oli-obk:limited_stability_attr, r=jdonszelmann 2026-02-11 13:48:47 +01:00
rustc_feature Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_fs_util Avoid using env::temp when linking a binary 2025-12-24 06:41:42 +00:00
rustc_graphviz change non-canonical clone impl to {*self}, fix some doc comments 2025-12-20 13:46:22 +00:00
rustc_hashes some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hir Port rustc_no_mir_inline to the new attribute parser 2026-02-10 10:25:19 +01:00
rustc_hir_analysis Rollup merge of #142415 - xizheyin:141679, r=estebank 2026-02-12 00:41:05 -05:00
rustc_hir_id
rustc_hir_pretty Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_hir_typeck Rollup merge of #150688 - Zalathar:check-pat-lit, r=petrochenkov 2026-02-10 13:00:48 +01:00
rustc_incremental Fix existing messages in the diag structs 2026-02-07 09:11:34 +01:00
rustc_index simplify words initialization using Rc::new_zeroed 2026-01-16 04:25:12 +05:30
rustc_index_macros
rustc_infer Convert to inline diagnostics in rustc_infer 2026-02-03 15:14:49 +01:00
rustc_interface Move parts of rustc_query_system::query::job to rustc_middle::job. 2026-02-10 16:59:33 +11:00
rustc_lexer Remove rustc_lexer::cursor module. 2026-01-27 12:06:55 +11:00
rustc_lint Add FCW for derive helper attributes that will conflict with built-in attributes 2026-02-10 19:39:19 +00:00
rustc_lint_defs Add FCW for derive helper attributes that will conflict with built-in attributes 2026-02-10 19:39:19 +00:00
rustc_llvm Rollup merge of #150780 - fzakaria:fzakaria/section-threshold, r=jackh726 2026-01-23 11:07:55 +01:00
rustc_log Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
rustc_macros Auto merge of #151943 - Zalathar:cache-on-disk, r=TaKO8Ki 2026-02-10 20:57:44 +00:00
rustc_metadata Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_middle Rollup merge of #152419 - nnethercote:mv-more-query-system-code, r=Zalathar 2026-02-11 13:48:46 +01:00
rustc_mir_build Port rustc_deprecated_safe_2024 to the new attribute parser 2026-02-10 10:10:38 +01:00
rustc_mir_dataflow Convert to inline diagnostics in rustc_mir_dataflow 2026-02-03 23:25:59 +01:00
rustc_mir_transform Port rustc_no_mir_inline to the new attribute parser 2026-02-10 10:25:19 +01:00
rustc_monomorphize Reformat existing messages 2026-02-08 23:07:58 +01:00
rustc_next_trait_solver Rollup merge of #152383 - RalfJung:BikeshedGuaranteedNoDrop, r=TaKO8Ki 2026-02-11 13:48:50 +01:00
rustc_parse Auto merge of #152412 - JonathanBrouwer:rollup-hShycIY, r=JonathanBrouwer 2026-02-10 02:25:24 +00:00
rustc_parse_format rustc_parse_format: improve diagnostics for unsupported debug = syntax 2026-02-06 00:44:03 +05:30
rustc_passes Port rustc_no_mir_inline to the new attribute parser 2026-02-10 10:25:19 +01:00
rustc_pattern_analysis Convert to inline diagnostics in rustc_pattern_analysis 2026-02-05 12:13:25 +01:00
rustc_privacy Rollup merge of #151887 - scottmcm:homogeneous-try-in-compiler, r=jackh726 2026-02-08 16:58:23 +11:00
rustc_proc_macro Update literal-escaper version to 0.0.7 2026-01-08 14:10:33 +01:00
rustc_public Rollup merge of #150271 - Jamesbarford:chore/refactor-struct-placeholder-pt2, r=lcnr 2026-01-29 17:47:29 +01:00
rustc_public_bridge Overhaul filename handling for cross-compiler consistency 2025-12-12 07:33:09 +01:00
rustc_query_impl Rollup merge of #152419 - nnethercote:mv-more-query-system-code, r=Zalathar 2026-02-11 13:48:46 +01:00
rustc_query_system Rollup merge of #152419 - nnethercote:mv-more-query-system-code, r=Zalathar 2026-02-11 13:48:46 +01:00
rustc_resolve Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
rustc_sanitizers Include assoc const projections in CFI trait object 2026-02-01 22:45:43 +08:00
rustc_serialize Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_session Remove the fallback bundle 2026-02-08 11:06:42 +01:00
rustc_span Rollup merge of #152351 - JonathanBrouwer:remove_subdiag, r=nnethercote 2026-02-10 13:00:47 +01:00
rustc_symbol_mangling Port #[rustc_symbol_name] and #[rustc_def_path] to attr parser 2026-02-07 01:43:00 +01:00
rustc_target Rollup merge of #142680 - beetrees:sparc64-float-struct-abi, r=tgross35 2026-02-12 00:41:05 -05:00
rustc_thread_pool change non-canonical clone impl to {*self}, fix some doc comments 2025-12-20 13:46:22 +00:00
rustc_trait_selection Rollup merge of #152383 - RalfJung:BikeshedGuaranteedNoDrop, r=TaKO8Ki 2026-02-11 13:48:50 +01:00
rustc_traits implied bounds comments 2026-01-19 16:08:54 +00:00
rustc_transmute Clean up src/dst transmute mess. 2026-01-12 09:22:58 +11:00
rustc_ty_utils Rollup merge of #151814 - lcnr:silent-layout-error, r=jackh726 2026-02-12 00:41:07 -05:00
rustc_type_ir Uplift Predicate::allow_normalization to rustc_type_ir 2026-02-10 12:26:12 +09:00
rustc_type_ir_macros Provide an extended framework for type visit, for use in rust-analyzer 2025-12-16 01:47:28 +02:00
rustc_windows_rc