Skip to content

Commit

Permalink
HIR Typecheck - Tweak matching of const generics
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jan 7, 2024
1 parent c6182b1 commit 31f5294
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hir_typeck/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3148,6 +3148,12 @@ ::HIR::Compare TraitResolution::ftic_check_params(const Span& sp, const ::HIR::S
if( out_impl_params.m_values[g.binding] == sz ) {
return ::HIR::Compare::Equal;
}
if( out_impl_params.m_values[g.binding].is_Infer() ) {
return ::HIR::Compare::Fuzzy;
}
if( sz.is_Infer() ) {
return ::HIR::Compare::Fuzzy;
}
TODO(Span(), "PtrImplMatcher::match_val " << g << "(" << out_impl_params.m_values[g.binding] << ") with " << sz);
}
}
Expand Down

0 comments on commit 31f5294

Please sign in to comment.