diff --git a/compiler/noirc_frontend/src/hir/def_collector/dc_crate.rs b/compiler/noirc_frontend/src/hir/def_collector/dc_crate.rs index ad16d7cf1bc..63aabe5399b 100644 --- a/compiler/noirc_frontend/src/hir/def_collector/dc_crate.rs +++ b/compiler/noirc_frontend/src/hir/def_collector/dc_crate.rs @@ -722,7 +722,7 @@ fn resolve_trait_impls( }; errors.push(err.into_file_diagnostic(trait_impl.methods.file_id)); } else { - interner.add_trait_implementation(&key, resolved_trait_impl.clone()); + interner.add_trait_implementation(&key, resolved_trait_impl); } methods.append(&mut impl_methods); diff --git a/compiler/noirc_frontend/src/hir/resolution/resolver.rs b/compiler/noirc_frontend/src/hir/resolution/resolver.rs index 4d8f9524fba..d862c92c8e0 100644 --- a/compiler/noirc_frontend/src/hir/resolution/resolver.rs +++ b/compiler/noirc_frontend/src/hir/resolution/resolver.rs @@ -670,7 +670,7 @@ impl<'a> Resolver<'a> { } /// TODO: This is currently only respected for generic free functions - /// there's a bunch of other places where this guy can pop up + /// there's a bunch of other places where trait constraints can pop up fn resolve_trait_constraints( &mut self, where_clause: &Vec,