File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4085,7 +4085,8 @@ class ExistentialTypeVisitor
4085
4085
if (proto->existentialRequiresAny ()) {
4086
4086
Ctx.Diags .diagnose (comp->getNameLoc (),
4087
4087
diag::existential_requires_any,
4088
- proto->getName ());
4088
+ proto->getName ())
4089
+ .limitBehavior (DiagnosticBehavior::Warning);
4089
4090
}
4090
4091
} else if (auto *alias = dyn_cast_or_null<TypeAliasDecl>(comp->getBoundDecl ())) {
4091
4092
auto type = Type (alias->getDeclaredInterfaceType ()->getDesugaredType ());
@@ -4101,7 +4102,8 @@ class ExistentialTypeVisitor
4101
4102
4102
4103
Ctx.Diags .diagnose (comp->getNameLoc (),
4103
4104
diag::existential_requires_any,
4104
- protoDecl->getName ());
4105
+ protoDecl->getName ())
4106
+ .limitBehavior (DiagnosticBehavior::Warning);
4105
4107
}
4106
4108
}
4107
4109
return false ;
You can’t perform that action at this time.
0 commit comments