Merge pull request #59740 from hborla/remove-existential-opening-option

[LangOptions] Remove the option to enable/disable implicit existential opening.
This commit is contained in:
Holly Borla
2022-06-30 08:53:13 -07:00
committed by GitHub
11 changed files with 16 additions and 27 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())