mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user