Skip to content

Commit

Permalink
Make Error a non_exhaustive type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfull committed Mar 21, 2023
1 parent cae65c4 commit 82dd2fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions halo2_proofs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions halo2_proofs/src/plonk/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82dd2fb

Please sign in to comment.