mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Derive completions work on hir, not names
This commit is contained in:
parent
aa9d093488
commit
3dfe5045c5
3 changed files with 94 additions and 88 deletions
|
@ -87,6 +87,10 @@ pub mod default {
|
|||
pub trait Default: Sized {
|
||||
fn default() -> Self;
|
||||
}
|
||||
// region:derive
|
||||
#[rustc_builtin_macro]
|
||||
pub macro Default($item:item) {}
|
||||
// endregion:derive
|
||||
}
|
||||
// endregion:default
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue