diff options
Diffstat (limited to 'crates/ide_diagnostics/src/handlers/missing_fields.rs')
-rw-r--r-- | crates/ide_diagnostics/src/handlers/missing_fields.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_diagnostics/src/handlers/missing_fields.rs b/crates/ide_diagnostics/src/handlers/missing_fields.rs index 0dd36fb23..bc56e0342 100644 --- a/crates/ide_diagnostics/src/handlers/missing_fields.rs +++ b/crates/ide_diagnostics/src/handlers/missing_fields.rs | |||
@@ -19,7 +19,7 @@ use crate::{fix, Diagnostic, DiagnosticsContext}; | |||
19 | // let a = A { a: 10 }; | 19 | // let a = A { a: 10 }; |
20 | // ``` | 20 | // ``` |
21 | pub(crate) fn missing_fields(ctx: &DiagnosticsContext<'_>, d: &hir::MissingFields) -> Diagnostic { | 21 | pub(crate) fn missing_fields(ctx: &DiagnosticsContext<'_>, d: &hir::MissingFields) -> Diagnostic { |
22 | let mut message = String::from("Missing structure fields:\n"); | 22 | let mut message = String::from("missing structure fields:\n"); |
23 | for field in &d.missed_fields { | 23 | for field in &d.missed_fields { |
24 | format_to!(message, "- {}\n", field); | 24 | format_to!(message, "- {}\n", field); |
25 | } | 25 | } |
@@ -85,7 +85,7 @@ mod tests { | |||
85 | struct S { foo: i32, bar: () } | 85 | struct S { foo: i32, bar: () } |
86 | fn baz(s: S) { | 86 | fn baz(s: S) { |
87 | let S { foo: _ } = s; | 87 | let S { foo: _ } = s; |
88 | //^ Missing structure fields: | 88 | //^ error: missing structure fields: |
89 | //| - bar | 89 | //| - bar |
90 | } | 90 | } |
91 | "#, | 91 | "#, |