Files
rust/compiler/rustc_attr_ir
Jonathan Brouwer 706214d854 Rollup merge of #162294 - yara-blue:reflection-refactor-ptrs, r=oli-obk
Reflection refactor ptrs

Tracking issue rust-lang/rust#146922

Part of the [Refactoring to many methods](https://rust-lang.zulipchat.com/#narrow/channel/572285-goals.2Freflection/topic/Refactoring.20to.20many.20methods/with/592226560) reflection subgoal. See that for the full context. In short for various reasons we are moving from an enum `TypeKind` where the variants hold the types information to one that just tells you the type kind. Separate methods on `TypeId` provide a way to get to the data that used to be in the variant.

Since function pointers have a lot of fields it felt better to keep the `FnPtr` struct we have now then add an intrinsic for each field.

r? @oli-obk
2026-09-07 17:08:09 +02:00
..
2026-08-21 10:33:58 +02:00