Files
rust/compiler/rustc_metadata
Jonathan Brouwer 1232437dc6 Rollup merge of #162900 - aerooneqq:record-tables-through-macros, r=petrochenkov
Some refactorings around metadata encoding

Two refactorings that were extracted from rust-lang/rust#162809:

- Use macros to record values in all tables, this unifies writing to tables and makes it much easier to modify or refactor writing process as it was needed in rust-lang/rust#162809,
- Moves `proc_macro_quoted_spans` table into `ProcMacroData` as it is filled only when `ProcMacroData` is `Some` (meaning crate type is `proc-macro`), so it is reasonable to place it here, moreover all tables left in `LazyTables` have `DefIndex` as key, this simplifies refactorings and modifications that are connected with `DefIndex`es.

r? @petrochenkov
2026-10-01 17:22:41 +02:00
..