about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-08-11 04:18:47 +0900
committerGitHub <noreply@github.com>2021-08-11 04:18:47 +0900
commit4be63b2b5c6503129950b040ed39feec3064bf47 (patch)
tree8415580fac07c5c95c8b24c4ff6874187f52d5cb /compiler/rustc_errors/src/snippet.rs
parent4d4915ae4860fc15f3a93e8655c62266528a8199 (diff)
parentcda6ecfc3d463119ae730ff3c85267d0a2724b60 (diff)
downloadrust-4be63b2b5c6503129950b040ed39feec3064bf47.tar.gz
rust-4be63b2b5c6503129950b040ed39feec3064bf47.zip
Rollup merge of #87895 - TheWastl:issue-87872, r=estebank
typeck: don't suggest inaccessible fields in struct literals and suggest ignoring inaccessible fields in struct patterns

Fixes #87872.

This PR adjusts the missing field diagnostic logic in typeck so that when any of the missing fields in a struct literal or pattern is inaccessible then the error is less confusing, even if some of the missing fields are accessible.

See also #76524.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions