Parse and collect derive helpers for builtin derive macros

This commit is contained in:
Ryo Yoshida 2022-11-07 21:24:17 +09:00
parent f9bd487708
commit cf54b8c3a4
No known key found for this signature in database
GPG key ID: E25698A930586171
4 changed files with 93 additions and 37 deletions

View file

@ -112,7 +112,7 @@ pub mod default {
fn default() -> Self;
}
// region:derive
#[rustc_builtin_macro]
#[rustc_builtin_macro(Default, attributes(default))]
pub macro Default($item:item) {}
// endregion:derive
}