rust/compiler
bors 4e97337005 Auto merge of #142030 - oli-obk:wfck-less-hir, r=compiler-errors
Start moving wf checking away from HIR

I'm trying to only access the HIR in the error path. My hope is that once we move significant portions of wfcheck off HIR that incremental will be able to cache wfcheck queries significantly better.

I think I am reaching a blocker because we normally need to provide good spans to `ObligationCause`, so that the trait solver can report good errors. In some cases I have been able to use bad spans and improve them depending on the `ObligationCauseCode` (by loading HIR in the case where we actually want to error). To scale that further we'll likely need to remove spans from the `ObligationCause` entirely (leaving it to some variants of `ObligationCauseCode` to have a span when they can't recompute the information later). Unsure this is the right approach, but we've already been using it. I will create an MCP about it, but that should not affect this PR, which is fairly limited in where it does those kind of tricks.

Especially b862d8828e is interesting here, because I think it improves spans in all cases
2025-07-01 14:59:58 +00:00
..
rustc
rustc_abi move discr=varid check to layout_sanity_check 2025-06-28 14:47:27 +02:00
rustc_arena Introduce Arena::try_alloc_from_iter. 2025-04-19 01:13:18 +00:00
rustc_ast Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_ast_ir Use -Wunused_crate_dependencies for compiler crates. 2025-03-20 08:59:43 +11:00
rustc_ast_lowering Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_ast_passes Rollup merge of #139858 - oli-obk:new-const-traits-syntax, r=fee1-dead 2025-06-27 22:13:00 +02:00
rustc_ast_pretty Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_attr_data_structures Auto merge of #142921 - JonathanBrouwer:rustc_attributes_parser, r=oli-obk 2025-07-01 08:33:00 +00:00
rustc_attr_parsing Auto merge of #142921 - JonathanBrouwer:rustc_attributes_parser, r=oli-obk 2025-07-01 08:33:00 +00:00
rustc_baked_icu_data
rustc_borrowck Auto merge of #143074 - compiler-errors:rollup-cv64hdh, r=compiler-errors 2025-06-27 00:44:20 +00:00
rustc_builtin_macros Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_codegen_cranelift Rollup merge of #143140 - RalfJung:ptr-into-parts, r=oli-obk 2025-06-30 20:49:41 +02:00
rustc_codegen_gcc Auto merge of #143254 - matthiaskrgr:rollup-7x8bxek, r=matthiaskrgr 2025-06-30 22:36:52 +00:00
rustc_codegen_llvm Rollup merge of #143125 - tgross35:aarch64-neon-llvm19-f16, r=cuviper 2025-07-01 04:25:34 +02:00
rustc_codegen_ssa Auto merge of #143013 - bjorn3:split_exported_symbols, r=oli-obk 2025-07-01 11:53:02 +00:00
rustc_const_eval Rollup merge of #143140 - RalfJung:ptr-into-parts, r=oli-obk 2025-06-30 20:49:41 +02:00
rustc_data_structures Rollup merge of #142868 - klensy:dc, r=oli-obk 2025-06-22 17:35:36 +02:00
rustc_driver Remove recursion_limit increases. 2025-04-02 16:25:27 +11:00
rustc_driver_impl Rollup merge of #143019 - danielframpton:codegen-backend-parse, r=bjorn3 2025-06-30 20:49:40 +02:00
rustc_error_codes compiler: Trim the misleading C of C-cmse from errors 2025-06-25 00:52:10 -07:00
rustc_error_messages Remove unused feature gates 2025-06-28 23:36:46 +00:00
rustc_errors Rollup merge of #143264 - Muscraft:fix-suggestion-filename, r=compiler-errors 2025-07-01 04:25:38 +02:00
rustc_expand Auto merge of #143267 - matthiaskrgr:rollup-suvzar6, r=matthiaskrgr 2025-07-01 05:31:05 +00:00
rustc_feature fix typos on some doc comments 2025-06-28 13:13:59 +02:00
rustc_fluent_macro Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
rustc_fs_util Retry if creating temp fails with access denied 2025-04-25 11:28:36 +00:00
rustc_graphviz
rustc_hashes
rustc_hir Auto merge of #142030 - oli-obk:wfck-less-hir, r=compiler-errors 2025-07-01 14:59:58 +00:00
rustc_hir_analysis Auto merge of #142030 - oli-obk:wfck-less-hir, r=compiler-errors 2025-07-01 14:59:58 +00:00
rustc_hir_pretty Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_hir_typeck Auto merge of #141875 - nnethercote:ByteSymbol, r=petrochenkov 2025-07-01 02:22:42 +00:00
rustc_incremental Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk 2025-05-07 12:39:54 +00:00
rustc_index index: add method for checking range on DenseBitSet 2025-06-04 00:47:12 +02:00
rustc_index_macros In rustc_mir_tranform, iterate over index newtypes instead of ints 2025-04-12 11:53:07 +00:00
rustc_infer Do not freshen ReError 2025-06-28 20:48:58 +00:00
rustc_interface Rollup merge of #143228 - nnethercote:macro-stats-build-scripts, r=Kobzol 2025-06-30 20:49:43 +02:00
rustc_lexer rustc_lexer: typo fix + small cleanups 2025-06-06 13:08:16 +00:00
rustc_lint Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_lint_defs make tidy-alphabetical use a natural sort 2025-06-25 22:52:38 +02:00
rustc_llvm rustc_llvm: add Windows system libs only when cross-compiling from Windows 2025-05-31 15:47:14 +02:00
rustc_log Add documentation for init_logger_with_additional_layer 2025-06-12 12:11:15 +02:00
rustc_macros Use tidy to sort sym::* items 2025-06-28 09:25:55 +00:00
rustc_metadata Auto merge of #143013 - bjorn3:split_exported_symbols, r=oli-obk 2025-07-01 11:53:02 +00:00
rustc_middle Auto merge of #143013 - bjorn3:split_exported_symbols, r=oli-obk 2025-07-01 11:53:02 +00:00
rustc_mir_build Auto merge of #141875 - nnethercote:ByteSymbol, r=petrochenkov 2025-07-01 02:22:42 +00:00
rustc_mir_dataflow mir: Use the new method for BasicBlockData 2025-06-29 20:39:13 +08:00
rustc_mir_transform Rollup merge of #143140 - RalfJung:ptr-into-parts, r=oli-obk 2025-06-30 20:49:41 +02:00
rustc_monomorphize Auto merge of #141759 - 1c3t3a:discriminants-query, r=saethlin 2025-06-28 10:25:00 +00:00
rustc_next_trait_solver Rollup merge of #143066 - compiler-errors:let-chain-solver, r=lcnr 2025-06-30 19:23:16 +08:00
rustc_parse Rollup merge of #143171 - fmease:fix-span-of-maybe-const-mod, r=compiler-errors 2025-06-29 06:59:33 +02:00
rustc_parse_format update to literal-escaper 0.0.4 for better API without unreachable and faster string parsing 2025-06-23 06:36:22 +00:00
rustc_passes Auto merge of #142921 - JonathanBrouwer:rustc_attributes_parser, r=oli-obk 2025-07-01 08:33:00 +00:00
rustc_pattern_analysis Add #[loop_match] for improved DFA codegen 2025-06-23 20:43:04 +02:00
rustc_privacy Reorder fields in hir::ItemKind variants. 2025-05-30 02:23:20 +10:00
rustc_proc_macro update to literal-escaper 0.0.4 for better API without unreachable and faster string parsing 2025-06-23 06:36:22 +00:00
rustc_query_impl Auto merge of #140145 - Zoxc:job-server-proxy, r=SparrowLii 2025-05-01 04:11:52 +00:00
rustc_query_system Rollup merge of #142384 - celinval:chores-rayon-mv, r=oli-obk 2025-06-20 23:25:54 -04:00
rustc_resolve explain ImportData::imported_module 2025-06-29 00:23:35 +08:00
rustc_sanitizers Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
rustc_serialize Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_session Rollup merge of #142809 - KMJ-007:ad-type-analysis-flag, r=ZuseZ4 2025-06-25 22:14:55 +02:00
rustc_smir Auto merge of #141759 - 1c3t3a:discriminants-query, r=saethlin 2025-06-28 10:25:00 +00:00
rustc_span Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_symbol_mangling Change __rust_no_alloc_shim_is_unstable to be a function 2025-06-16 10:54:07 -07:00
rustc_target Rollup merge of #141311 - folkertdev:tidy-natural-sort, r=jieyouxu 2025-06-26 15:47:17 +02:00
rustc_thread_pool Apply suggestions from code review 2025-06-16 12:27:47 -07:00
rustc_trait_selection Make check_param_wf only go through the HIR in the error path 2025-06-30 08:04:11 +00:00
rustc_traits Remove some glob imports from the type system 2025-06-25 15:35:16 +00:00
rustc_transmute tag_for_variant: properly pass TypingEnv 2025-06-27 17:04:33 +02:00
rustc_ty_utils Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
rustc_type_ir Rollup merge of #143066 - compiler-errors:let-chain-solver, r=lcnr 2025-06-30 19:23:16 +08:00
rustc_type_ir_macros Split TypeFolder and FallibleTypeFolder 2025-04-15 18:30:35 +00:00
stable_mir Change rustc_driver dependency on stable_mir crate 2025-04-30 15:39:52 -07:00