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:
Benjamin Coenen 2022-01-04 15:59:00 +01:00
parent df6fa50f92
commit 336c899a07
6 changed files with 123 additions and 13 deletions

View file

@ -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! {