mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Promote TypedThrows features to the baseline.
This commit is contained in:
@@ -166,19 +166,6 @@ static bool usesFeatureExtensionMacroAttr(Decl *decl) {
|
||||
return usesFeatureExtensionMacros(decl);
|
||||
}
|
||||
|
||||
static bool usesFeatureTypedThrows(Decl *decl) {
|
||||
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
|
||||
return usesTypeMatching(decl, [](Type ty) {
|
||||
if (auto funcType = ty->getAs<AnyFunctionType>())
|
||||
return funcType->hasThrownError();
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool usesFeatureOptionalIsolatedParameters(Decl *decl) {
|
||||
auto *value = dyn_cast<ValueDecl>(decl);
|
||||
if (!value)
|
||||
|
||||
Reference in New Issue
Block a user