Skip to content

Commit

Permalink
HIR Typecheck - Avoid using poorly fuzzed type expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jul 4, 2024
1 parent 0d3109d commit bd44471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hir_typeck/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ void TraitResolution::expand_associated_types_inplace__UfcsKnown(const Span& sp,
if( can_fuzz )
{
count += 1;
if( count == 1 ) {
if( count == 1 && impl.get_impl_type().data().tag() == pe.type.data().tag() ) {
best_impl = mv$(impl);
}
}
Expand Down

0 comments on commit bd44471

Please sign in to comment.