diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-08-09 23:56:00 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-08-14 14:23:05 -0700 |
| commit | 354fcf2b52119d938b3181bd6cbc3be1929138df (patch) | |
| tree | 6ef9a562d362b3db77d85520820570bcc342c73b /compiler/rustc_feature | |
| parent | 8fb98ef36846f74c8a642e856808ad5600ae4110 (diff) | |
| download | rust-354fcf2b52119d938b3181bd6cbc3be1929138df.tar.gz rust-354fcf2b52119d938b3181bd6cbc3be1929138df.zip | |
mbe: Handle applying `macro_rules` derives
Add infrastructure to apply a derive macro to arguments, consuming and returning a `TokenTree` only. Handle `SyntaxExtensionKind::MacroRules` when expanding a derive, if the macro's kinds support derive. Add tests covering various cases of `macro_rules` derives. Note that due to a pre-existing FIXME in `expand.rs`, derives are re-queued and some errors get emitted twice. Duplicate diagnostic suppression makes them not visible, but the FIXME should still get fixed.
Diffstat (limited to 'compiler/rustc_feature')
0 files changed, 0 insertions, 0 deletions
