rust/compiler/rustc_hir_analysis/src
Matthias Krüger b067ee82f8
Rollup merge of #127181 - BoxyUwU:dump_def_parents, r=compiler-errors
Introduce a `rustc_` attribute to dump all the `DefId` parents of a `DefId`

We've run into a bunch of issues with anon consts having the wrong generics and it would have been incredibly helpful to be able to quickly slap a `rustc_` attribute to check what `tcx.parent(` will return on the relevant DefIds.

I wasn't sure of a better way to make this work for anon consts than requiring the attribute to be on the enclosing item and then walking the inside of it to look for any anon consts. This particular method will honestly break at some point when we stop having a `DefId` available for anon consts in hir but that's for another day...

r? ``@compiler-errors``
2024-07-01 08:53:07 +02:00
..
check temporarily disable effects on specialization tests 2024-06-28 10:57:35 +00:00
coherence Rename a bunch of things 2024-06-21 12:32:05 -04:00
collect add rustc_dump_def_parents attribute 2024-06-30 19:31:21 +01:00
errors Explicitly mention Self 2024-04-20 11:39:43 -04:00
hir_ty_lowering general fixups and turn TODOs into FIXMEs 2024-06-28 10:57:35 +00:00
impl_wf_check Opt-in diagnostics reporting to avoid doing extra work in the new solver 2024-06-03 09:27:52 -04:00
outlives Slightly refactor the dumping of HIR analysis data 2024-06-20 20:31:32 +02:00
structured_errors Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
variance Slightly refactor the dumping of HIR analysis data 2024-06-20 20:31:32 +02:00
autoderef.rs Make builtin_deref just return a Ty 2024-05-09 22:55:00 -04:00
bounds.rs address review comments 2024-06-28 15:44:20 +00:00
check_unused.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
collect.rs Auto merge of #127133 - matthiaskrgr:rollup-jxkp3yf, r=matthiaskrgr 2024-06-30 02:20:01 +00:00
constrained_generic_params.rs Auto merge of #125076 - compiler-errors:alias-term, r=lcnr 2024-05-13 22:20:43 +00:00
errors.rs Make feature(effects) require -Znext-solver 2024-06-30 17:08:10 +00:00
hir_wf_check.rs Handle safety keyword for extern block inner items 2024-06-04 14:19:42 -03:00
impl_wf_check.rs Hide some follow-up errors 2024-06-03 13:03:53 +00:00
lib.rs Rollup merge of #127181 - BoxyUwU:dump_def_parents, r=compiler-errors 2024-07-01 08:53:07 +02:00
structured_errors.rs Rename StructuredDiagnostic as StructuredDiag. 2024-03-05 12:15:12 +11:00