mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
add better default behavior on fill struct fields diagnostic
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
df6fa50f92
commit
336c899a07
6 changed files with 123 additions and 13 deletions
|
@ -1273,7 +1273,7 @@ fn field_props(field: &str, ty: &str, doc: &[&str], default: &str) -> serde_json
|
|||
"enum": ["todo", "defaultImpl"],
|
||||
"enumDescriptions": [
|
||||
"Fill missing elements with 'todo' macro",
|
||||
"Fill missing elements with Default::default()"
|
||||
"Fill missing elements with T::default()"
|
||||
],
|
||||
},
|
||||
"ImportGranularityDef" => set! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue