Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guipublic committed Nov 20, 2024
1 parent 7a87315 commit 2dcc13f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/noirc_frontend/src/monomorphization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1070,14 +1070,14 @@ impl<'interner> Monomorphizer<'interner> {
HirType::TraitAsType(..) => {
unreachable!("All TraitAsType should be replaced before calling convert_type");
}
HirType::NamedGeneric(_, _) => Self::convert_type_iter(typ, location)?,
HirType::NamedGeneric(_, _) => Self::convert_type_iter(&typ, location)?,

HirType::CheckedCast { from, to } => {
Self::check_checked_cast(from, to, location)?;
Self::convert_type(to, location)?
}

HirType::TypeVariable(_) => Self::convert_type_iter(typ, location)?,
HirType::TypeVariable(_) => Self::convert_type_iter(&typ, location)?,

HirType::Struct(def, args) => {
// Not all generic arguments may be used in a struct's fields so we have to check
Expand Down Expand Up @@ -1218,7 +1218,7 @@ impl<'interner> Monomorphizer<'interner> {
Ok(())
}

HirType::TypeVariable(_) => Self::check_type_iter(typ, location),
HirType::TypeVariable(_) => Self::check_type_iter(&typ, location),

HirType::Struct(_def, args) => {
for arg in args {
Expand Down

0 comments on commit 2dcc13f

Please sign in to comment.