mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 15:51:04 +01:00
Require a complete type when enumerating the fields of a class. (#2956)
Fixes a crash on invalid found by fuzzing.
This commit is contained in:
@@ -192,9 +192,9 @@ auto ImplScope::TryResolve(Nonnull<const Value*> constraint_type,
|
||||
type_checker.Substitute(local_bindings, argument));
|
||||
converted.arguments.push_back(subst_arg);
|
||||
}
|
||||
CARBON_ASSIGN_OR_RETURN(
|
||||
bool intrinsic_satisfied,
|
||||
type_checker.IsIntrinsicConstraintSatisfied(converted, *this));
|
||||
CARBON_ASSIGN_OR_RETURN(bool intrinsic_satisfied,
|
||||
type_checker.IsIntrinsicConstraintSatisfied(
|
||||
source_loc, converted, *this));
|
||||
if (!intrinsic_satisfied) {
|
||||
if (!diagnose_missing_impl) {
|
||||
return {std::nullopt};
|
||||
|
||||
Reference in New Issue
Block a user