about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorVictor Song <vms2@rice.edu>2023-09-30 22:57:54 -0500
committerVictor Song <vms2@rice.edu>2023-09-30 22:57:54 -0500
commite683e3eeac5603296c328ff45c9e5bb911327756 (patch)
treec4d33cff2476f5ecaf9675eeb8b807cfcfd412f2 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent0e43a04fabc734226eb31442706f3816ffc84a6a (diff)
downloadrust-e683e3eeac5603296c328ff45c9e5bb911327756.tar.gz
rust-e683e3eeac5603296c328ff45c9e5bb911327756.zip
Don't lint `manual_non_exhaustive` when enum explicitly marked as `non_exhaustive`
There are cases where users create a unit variant for the purposes
of tracking the number of variants for an nonexhaustive enum.
We should check if an enum is explicitly marked as nonexhaustive
before reporting `manual_non_exhaustive` in these cases. Fixes #11583
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions