diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2018-08-26 16:36:50 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2018-08-26 18:24:51 +0300 |
| commit | 993e7e2622da632705661007d5a3bce812cc6d3d (patch) | |
| tree | aa4a3dfa5154c2dba716b6289c12d28f7e80bd1f /src/libsyntax/parse | |
| parent | caed80ba4ba8d9f4d3fa8aa9af6c4092d779cd9d (diff) | |
| download | rust-993e7e2622da632705661007d5a3bce812cc6d3d.tar.gz rust-993e7e2622da632705661007d5a3bce812cc6d3d.zip | |
fix `is_non_exhaustive` confusion between structs and enums
Structs and enums can both be non-exhaustive, with a very different meaning. This PR splits `is_non_exhaustive` to 2 separate functions - 1 for structs, and another for enums, and fixes the places that got the usage confused. Fixes #53549.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
