File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -354,14 +354,7 @@ static bool usesFeatureCoroutineAccessors(Decl *decl) {
354354}
355355
356356UNINTERESTING_FEATURE (GeneralizedIsSameMetaTypeBuiltin)
357-
358- static bool usesFeatureCustomAvailability(Decl *decl) {
359- for (auto attr : decl->getSemanticAvailableAttrs ()) {
360- if (attr.getDomain ().isCustom ())
361- return true ;
362- }
363- return false ;
364- }
357+ UNINTERESTING_FEATURE(CustomAvailability)
365358
366359static bool usesFeatureAsyncExecutionBehaviorAttributes(Decl *decl) {
367360 // Explicit `@concurrent` attribute on the declaration.
Original file line number Diff line number Diff line change 1515
1616import Oceans // re-exports Rivers
1717
18- // CHECK: #if compiler(>=5.3) && $CustomAvailability
19- // CHECK-NEXT: @available(Colorado)
18+ // CHECK-NOT: $CustomAvailability
19+
20+ // CHECK: @available(Colorado)
2021// CHECK-NEXT: public func availableInColorado()
21- // CHECK-NEXT: #endif
2222@available ( Colorado)
2323public func availableInColorado( ) { }
2424
25- // CHECK: #if compiler(>=5.3) && $CustomAvailability
26- // CHECK-NEXT: @available(Arctic, unavailable)
25+ // CHECK: @available(Arctic, unavailable)
2726// CHECK-NEXT: @available(Pacific)
2827// CHECK-NEXT: public func unavailableInArcticButAvailableInPacific()
29- // CHECK-NEXT: #endif
3028@available ( Arctic, unavailable)
3129@available ( Pacific)
3230public func unavailableInArcticButAvailableInPacific( ) { }
You can’t perform that action at this time.
0 commit comments