@@ -2588,12 +2588,12 @@ void PrintAST::printSynthesizedExtensionImpl(Type ExtendedType,
2588
2588
// protocol Foo {}
2589
2589
// extension Foo where <requirments from ExtDecl> { ... }
2590
2590
// struct Bar {}
2591
- // extension Bar: Foo where <requirments from TransformContext> { ... }
2591
+ // extension Bar: Foo where <requirements from TransformContext> { ... }
2592
2592
//
2593
2593
// should produce a synthesized extension of Bar with both sets of
2594
- // requirments :
2594
+ // requirements :
2595
2595
//
2596
- // extension Bar where <requirments from ExtDecl+TransformContext { ... }
2596
+ // extension Bar where <requirements from ExtDecl+TransformContext> { ... }
2597
2597
//
2598
2598
if (!printCombinedRequirementsIfNeeded ())
2599
2599
printDeclGenericRequirements (ExtDecl);
@@ -3208,21 +3208,21 @@ static void printWithSuppressibleFeatureChecks(ASTPrinter &printer,
3208
3208
// / #endif
3209
3209
// / #endif
3210
3210
// / ```
3211
- bool swift::printWithCompatibilityFeatureChecks (ASTPrinter &printer,
3211
+ void swift::printWithCompatibilityFeatureChecks (ASTPrinter &printer,
3212
3212
PrintOptions &options,
3213
3213
Decl *decl,
3214
3214
llvm::function_ref<void ()> printBody) {
3215
3215
// A single accessor does not get a feature check,
3216
3216
// it should go around the whole decl.
3217
3217
if (isa<AccessorDecl>(decl)) {
3218
3218
printBody ();
3219
- return false ;
3219
+ return ;
3220
3220
}
3221
3221
3222
3222
FeatureSet features = getUniqueFeaturesUsed (decl);
3223
3223
if (features.empty ()) {
3224
3224
printBody ();
3225
- return false ;
3225
+ return ;
3226
3226
}
3227
3227
3228
3228
// Enter a `#if` for the required features, if any.
@@ -3252,8 +3252,6 @@ bool swift::printWithCompatibilityFeatureChecks(ASTPrinter &printer,
3252
3252
printer.printNewline ();
3253
3253
printer << " #endif" ;
3254
3254
}
3255
-
3256
- return true ;
3257
3255
}
3258
3256
3259
3257
void PrintAST::visitExtensionDecl (ExtensionDecl *decl) {
0 commit comments