Skip to content

Commit 87d35c4

Browse files
committed
chore: reduce visibility of current_witness_index
1 parent 16aa7ef commit 87d35c4

File tree

2 files changed

+2
-2
lines changed
  • compiler
    • noirc_evaluator/src/acir/acir_context/generated_acir
    • noirc_frontend/src/node_interner

2 files changed

+2
-2
lines changed

compiler/noirc_evaluator/src/acir/acir_context/generated_acir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub(crate) type BrilligProcedureRangeMap = BTreeMap<ProcedureDebugId, (usize, us
9696

9797
impl<F: AcirField> GeneratedAcir<F> {
9898
/// Returns the current witness index.
99-
pub fn current_witness_index(&self) -> Witness {
99+
pub(crate) fn current_witness_index(&self) -> Witness {
100100
Witness(self.current_witness_index.unwrap_or(0))
101101
}
102102

compiler/noirc_frontend/src/node_interner/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ impl NodeInterner {
872872
///
873873
/// Returns:
874874
/// * `Ok` if it was able to substitute the type, either because it's not an `impl Trait`
875-
/// or because the type of the body of the function is already known
875+
/// or because the type of the body of the function is already known
876876
/// * `Err` if the function returning the `impl Trait` needs to be elaborated first
877877
pub fn id_type_substitute_trait_as_type(&self, def_id: DefinitionId) -> Result<Type, FuncId> {
878878
let typ = self.definition_type(def_id);

0 commit comments

Comments
 (0)