diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-25 13:42:36 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-25 13:42:36 +0000 |
commit | be00d74c7b61fb82bdade482e95035a21f9dd736 (patch) | |
tree | 95dc85c347125501486396c824aaf31e5f1be5f9 /crates/ra_hir/src/ty | |
parent | df25dd4d882d7521140458b60f486c2f617608ee (diff) | |
parent | 66f04e6be54c47104877bff777b7042960d04393 (diff) |
Merge #2388
2388: Show missing struct fields in the error message r=matklad a=Frizi
This provides the most interesting information about the "missing structure fields" error directly to the user.
Co-authored-by: Frizi <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 3209c66bd..98eb863cb 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -4832,7 +4832,8 @@ fn no_such_field_diagnostics() { | |||
4832 | 4832 | ||
4833 | assert_snapshot!(diagnostics, @r###" | 4833 | assert_snapshot!(diagnostics, @r###" |
4834 | "baz: 62": no such field | 4834 | "baz: 62": no such field |
4835 | "{\n foo: 92,\n baz: 62,\n }": fill structure fields | 4835 | "{\n foo: 92,\n baz: 62,\n }": Missing structure fields: |
4836 | - bar | ||
4836 | "### | 4837 | "### |
4837 | ); | 4838 | ); |
4838 | } | 4839 | } |