From 66507561153515d58452808d7fb1c63f7786fbf2 Mon Sep 17 00:00:00 2001 From: Jake Fecher Date: Mon, 29 Apr 2024 10:50:04 -0500 Subject: [PATCH] Remove unnecessary pub(super) --- compiler/noirc_frontend/src/hir/comptime/interpreter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/noirc_frontend/src/hir/comptime/interpreter.rs b/compiler/noirc_frontend/src/hir/comptime/interpreter.rs index 26b7c212a30..1903d113586 100644 --- a/compiler/noirc_frontend/src/hir/comptime/interpreter.rs +++ b/compiler/noirc_frontend/src/hir/comptime/interpreter.rs @@ -163,7 +163,7 @@ impl<'a> Interpreter<'a> { self.scopes.last_mut().unwrap() } - pub(super) fn define_pattern( + fn define_pattern( &mut self, pattern: &HirPattern, typ: &Type, @@ -265,7 +265,7 @@ impl<'a> Interpreter<'a> { Err(InterpreterError::NonComptimeVarReferenced { name, location }) } - pub(super) fn lookup(&self, ident: &HirIdent) -> IResult { + fn lookup(&self, ident: &HirIdent) -> IResult { self.lookup_id(ident.id, ident.location) } @@ -294,7 +294,7 @@ impl<'a> Interpreter<'a> { } /// Evaluate an expression and return the result - pub(super) fn evaluate(&mut self, id: ExprId) -> IResult { + fn evaluate(&mut self, id: ExprId) -> IResult { match self.interner.expression(&id) { HirExpression::Ident(ident) => self.evaluate_ident(ident, id), HirExpression::Literal(literal) => self.evaluate_literal(literal, id),