Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unused PartialEq
Browse files Browse the repository at this point in the history
michaeljklein committed Mar 15, 2024
1 parent 4fbd911 commit e18f47b
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/def_collector/dc_crate.rs
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ pub struct DefCollector {
pub(crate) type ImplMap =
HashMap<(UnresolvedType, LocalModuleId), Vec<(UnresolvedGenerics, Span, UnresolvedFunctions)>>;

#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone)]
pub enum CompilationError {
ParseError(ParserError),
DefinitionError(DefCollectorErrorKind),
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/hir/def_collector/errors.rs
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ pub enum DuplicateType {
TraitAssociatedFunction,
}

#[derive(Error, Debug, Clone, PartialEq)]
#[derive(Error, Debug, Clone)]
pub enum DefCollectorErrorKind {
#[error("duplicate {typ} found in namespace")]
Duplicate { typ: DuplicateType, first_def: Ident, second_def: Ident },
@@ -70,7 +70,7 @@ pub enum DefCollectorErrorKind {
}

/// An error struct that macro processors can return.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone)]
pub struct MacroError {
pub primary_message: String,
pub secondary_message: Option<String>,

0 comments on commit e18f47b

Please sign in to comment.