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) {
354
354
}
355
355
356
356
UNINTERESTING_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)
365
358
366
359
static bool usesFeatureAsyncExecutionBehaviorAttributes(Decl *decl) {
367
360
// Explicit `@concurrent` attribute on the declaration.
Original file line number Diff line number Diff line change 15
15
16
16
import Oceans // re-exports Rivers
17
17
18
- // CHECK: #if compiler(>=5.3) && $CustomAvailability
19
- // CHECK-NEXT: @available(Colorado)
18
+ // CHECK-NOT: $CustomAvailability
19
+
20
+ // CHECK: @available(Colorado)
20
21
// CHECK-NEXT: public func availableInColorado()
21
- // CHECK-NEXT: #endif
22
22
@available ( Colorado)
23
23
public func availableInColorado( ) { }
24
24
25
- // CHECK: #if compiler(>=5.3) && $CustomAvailability
26
- // CHECK-NEXT: @available(Arctic, unavailable)
25
+ // CHECK: @available(Arctic, unavailable)
27
26
// CHECK-NEXT: @available(Pacific)
28
27
// CHECK-NEXT: public func unavailableInArcticButAvailableInPacific()
29
- // CHECK-NEXT: #endif
30
28
@available ( Arctic, unavailable)
31
29
@available ( Pacific)
32
30
public func unavailableInArcticButAvailableInPacific( ) { }
You can’t perform that action at this time.
0 commit comments