Merge pull request #757 from zcash/non-exhaustive-errors

Make `Error` a non_exhaustive type.
This commit is contained in:
ebfull 2023-03-21 17:37:12 -06:00 committed by GitHub
commit 81c7326bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ and this project adheres to Rust's notion of
`Column<Fixed>` variant.
- `query_fixed` now no longer takes a `Rotation` argument,
and can only be used to query the current rotation.
- `Error` is now a [`non_exhaustive`](https://doc.rust-lang.org/reference/attributes/type_system.html) type.
## [0.2.0] - 2022-06-23
### Added

View File

@ -6,6 +6,7 @@ use super::{Any, Column};
/// This is an error that could occur during proving or circuit synthesis.
// TODO: these errors need to be cleaned up
#[non_exhaustive]
#[derive(Debug)]
pub enum Error {
/// This is an error that can occur during synthesis of the circuit, for