about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorBenjamin Coenen <5719034+bnjjj@users.noreply.github.com>2022-01-07 14:13:34 +0100
committerBenjamin Coenen <5719034+bnjjj@users.noreply.github.com>2022-01-07 14:13:34 +0100
commitb60a29ca9428e95c995f12ab8eff6160957188fe (patch)
tree4277f771073f55c945196b93229528d4cf61158f /editors/code
parent0a4239a8153a17dda816678dfd870e1e5d10a101 (diff)
downloadrust-b60a29ca9428e95c995f12ab8eff6160957188fe.tar.gz
rust-b60a29ca9428e95c995f12ab8eff6160957188fe.zip
feat(diagnostics): use default expression instead of todo! when missing fields
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 6bc62fc9d7f..c81fd0b3d2d 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -384,11 +384,11 @@
                     "type": "string",
                     "enum": [
                         "todo",
-                        "defaultImpl"
+                        "default"
                     ],
                     "enumDescriptions": [
-                        "Fill missing elements with 'todo' macro",
-                        "Fill missing elements with T::default()"
+                        "Fill missing expressions with the 'todo' macro",
+                        "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
                     ]
                 },
                 "rust-analyzer.assist.importGranularity": {