← board

Rust frontend — derive-macro codegen

What it does

#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] synthesizes trait impl bodies mechanically from a struct/enum's field list — not macro_rules! (no token-tree matching/hygiene needed), just compiler-generated code walking fields:

Real-world confirmation: ~/nextlevel/engine uses these 10x across 6.1k LOC — common, not exotic.

Acceptance

Log