Files
rust/compiler
randomicon00 858b82da3b Simplify find_attr! for HirId usage
Add a HasAttrs<'tcx, Tcx> trait to rustc_hir that allows find_attr! to
accept DefId, LocalDefId, OwnerId, and HirId directly, instead of
requiring callers to manually fetch the attribute slice first.

The trait is defined in rustc_hir with a generic Tcx parameter to avoid
a dependency cycle (rustc_hir cannot depend on rustc_middle). The four
concrete impls for TyCtxt are in rustc_middle.
2026-03-11 20:31:34 -04:00
..
2026-03-07 10:42:02 -08:00
2026-03-07 10:42:02 -08:00
2026-03-07 10:42:02 -08:00
2026-03-07 10:42:02 -08:00
2026-03-07 10:42:02 -08:00
2026-03-08 22:54:12 +11:00
2026-03-07 10:42:02 -08:00
2026-03-07 10:42:02 -08:00
2026-03-07 10:42:02 -08:00
2026-01-19 16:08:54 +00:00