diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-08-11 04:18:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 04:18:47 +0900 |
| commit | 4be63b2b5c6503129950b040ed39feec3064bf47 (patch) | |
| tree | 8415580fac07c5c95c8b24c4ff6874187f52d5cb /compiler/rustc_errors/src/snippet.rs | |
| parent | 4d4915ae4860fc15f3a93e8655c62266528a8199 (diff) | |
| parent | cda6ecfc3d463119ae730ff3c85267d0a2724b60 (diff) | |
| download | rust-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
