[LangOptions] Remove the option to enable/disable implicit existential

opening.
This commit is contained in:
Holly Borla
2022-06-27 17:59:34 -07:00
parent 04bbde1a9b
commit 6e8a581b42
10 changed files with 9 additions and 25 deletions

View File

@@ -1519,10 +1519,6 @@ shouldOpenExistentialCallArgument(
if (isa_and_nonnull<clang::FunctionTemplateDecl>(callee->getClangDecl()))
return None;
ASTContext &ctx = callee->getASTContext();
if (!ctx.LangOpts.EnableOpenedExistentialTypes)
return None;
// The actual parameter type needs to involve a type variable, otherwise
// type inference won't be possible.
if (!paramTy->hasTypeVariable())