rust/compiler/rustc_hir_analysis/src
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
..
check Don't run hir wfcheck if ty wfcheck handled everything 2025-06-30 08:47:53 +00:00
coherence Remove some glob imports from the type system 2025-06-25 15:35:16 +00:00
collect Rollup merge of #143106 - yotamofek:pr/gce/non-local-ice, r=BoxyUwU 2025-06-27 22:13:07 +02:00
errors Change const trait bound syntax from ~const to [const] 2025-06-26 13:46:45 +00:00
hir_ty_lowering Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
impl_wf_check Change const trait bound syntax from ~const to [const] 2025-06-26 13:46:45 +00:00
outlives Fix some var names 2025-05-27 11:14:47 +00:00
variance Fix some var names 2025-05-27 11:14:47 +00:00
autoderef.rs FIXME(-Znext-solver) triage 2025-06-03 14:23:56 +02:00
check_unused.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
collect.rs Auto merge of #142030 - oli-obk:wfck-less-hir, r=compiler-errors 2025-07-01 14:59:58 +00:00
constrained_generic_params.rs Remove weak alias terminology 2025-04-24 11:59:20 +01:00
delegation.rs Use more slicing and slice interning over iterable interning 2025-06-13 01:16:01 +02:00
errors.rs hir_analysis: prohibit dyn PointeeSized 2025-06-27 17:01:47 +00:00
hir_wf_check.rs Merge unboxed trait object error suggestion into regular dyn incompat error 2025-06-13 13:54:06 +00:00
impl_wf_check.rs Move name field from AssocItem to AssocKind variants. 2025-04-15 08:07:15 +10:00
lib.rs Remove unused feature gates 2025-06-28 23:36:46 +00:00