diff options
| author | bors <bors@rust-lang.org> | 2020-12-13 08:40:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-13 08:40:07 +0000 |
| commit | d149b6579fb118ea75b16cb7a6afa62695d88992 (patch) | |
| tree | ab9f532faa43571c4c195df281f8211d20e45db4 /src/test/ui/iterators/iter-count-overflow-debug.rs | |
| parent | 12813159a985d87a98578e05cc39200e4e8c2102 (diff) | |
| parent | 5ce3f4c16636b261a8ce9ddfbbb30896338b9e37 (diff) | |
| download | rust-d149b6579fb118ea75b16cb7a6afa62695d88992.tar.gz rust-d149b6579fb118ea75b16cb7a6afa62695d88992.zip | |
Auto merge of #79956 - camelid:variant-field-vis, r=petrochenkov
Resolve enum field visibility correctly Fixes #79593. :tada: Previously, this code treated enum fields' visibility as if they were struct fields. However, that's not correct because the visibility of a struct field with `ast::VisibilityKind::Inherited` is private to the module it's defined in, whereas the visibility of an *enum* field with `ast::VisibilityKind::Inherited` is the visibility of the enum it belongs to.
Diffstat (limited to 'src/test/ui/iterators/iter-count-overflow-debug.rs')
0 files changed, 0 insertions, 0 deletions
