Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Feb 27, 2025
1 parent 8e6b43f commit 5a5f087
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions compiler/noirc_frontend/src/elaborator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,25 +734,11 @@ impl<'context> Elaborator<'context> {

pub(crate) fn push_err(&mut self, error: impl Into<CompilationError>) {
let error: CompilationError = error.into();
if matches!(
&error,
CompilationError::TypeError(TypeCheckError::GenericCountMismatch { .. })
) {
panic!("oops!");
}
self.errors.push(error);
}

pub(crate) fn push_errors(&mut self, errors: impl IntoIterator<Item = CompilationError>) {
self.errors.extend(errors.into_iter().map(|e| {
if matches!(
&e,
CompilationError::TypeError(TypeCheckError::GenericCountMismatch { .. })
) {
panic!("oops!");
}
e
}));
self.errors.extend(errors);
}

fn run_lint(&mut self, lint: impl Fn(&Elaborator) -> Option<CompilationError>) {
Expand Down

0 comments on commit 5a5f087

Please sign in to comment.