mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 10:58:02 +00:00
feat: Implement default-field-values
This commit is contained in:
parent
35b55fd67f
commit
7de0b2e75a
33 changed files with 647 additions and 31 deletions
|
|
@ -33,7 +33,8 @@ pub fn missing_unsafe(
|
|||
DefWithBodyId::StaticId(_)
|
||||
| DefWithBodyId::ConstId(_)
|
||||
| DefWithBodyId::VariantId(_)
|
||||
| DefWithBodyId::InTypeConstId(_) => false,
|
||||
| DefWithBodyId::InTypeConstId(_)
|
||||
| DefWithBodyId::FieldId(_) => false,
|
||||
};
|
||||
|
||||
let body = db.body(def);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue