mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Parse and collect derive helpers for builtin derive macros
This commit is contained in:
parent
f9bd487708
commit
cf54b8c3a4
4 changed files with 93 additions and 37 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue