Skip to content

Commit

Permalink
HIR Typecheck - Fuzzy Copy with unresolved ATYs
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jul 27, 2024
1 parent 7ece8a6 commit 8fe81d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hir_typeck/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3872,6 +3872,9 @@ ::HIR::Compare TraitResolution::type_is_copy(const Span& sp, const ::HIR::TypeRe
return ::HIR::Compare::Fuzzy;
}
else {
if( type.data().is_Path() && type.data().as_Path().binding.is_Unbound() ) {
return ::HIR::Compare::Fuzzy;
}
return ::HIR::Compare::Unequal;
}
}
Expand Down

0 comments on commit 8fe81d2

Please sign in to comment.