Skip to content

Commit 5abb1ea

Browse files
committed
[test] Remove some REQUIRES: for features not longer used in those files
While doing #76740 I iteratively was adding new `REQUIRES:` as new usages of the features were found, but I did not realize that at the same time other people might be removing some of those usages. The tests in this commit had some `REQUIRES:` line for a previous `-enable-experimental/upcoming-feature`, but they not longer use those features, so the `REQUIRES:` were effectively disabling the tests (at least in the case of `KeyPathWithStaticMembers`. In other cases they might still had executed).
1 parent e5751af commit 5abb1ea

File tree

9 files changed

+0
-14
lines changed

9 files changed

+0
-14
lines changed

test/Concurrency/isolated_default_arguments.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// REQUIRES: concurrency
66
// REQUIRES: swift_feature_InferSendableFromCaptures
7-
// REQUIRES: swift_feature_IsolatedDefaultValues
8-
// REQUIRES: swift_feature_RegionBasedIsolation
97

108
@globalActor
119
actor SomeGlobalActor {

test/Concurrency/nonisolated_rules.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -swift-version 6 -parse-as-library %s -emit-sil -o /dev/null -verify -strict-concurrency=complete
22

33
// REQUIRES: concurrency
4-
// REQUIRES: swift_feature_GlobalActorInferenceCutoff
54

65
@MainActor
76
protocol GloballyIsolated {}

test/Interpreter/keypath.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22

33
// REQUIRES: executable_test
4-
// REQUIRES: swift_feature_KeyPathWithStaticMembers
54

65
// UNSUPPORTED: use_os_stdlib
76
// UNSUPPORTED: back_deployment_runtime

test/Interpreter/static_keypaths.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
// REQUIRES: executable_test
2222
// REQUIRES: OS=macosx
23-
// REQUIRES: swift_feature_KeyPathWithStaticMembers
2423

2524
// UNSUPPORTED: use_os_stdlib
2625
// UNSUPPORTED: back_deployment_runtime

test/SILGen/keypaths.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// RUN: %target-swift-emit-silgen -target %target-swift-5.1-abi-triple -disable-experimental-parser-round-trip -parse-stdlib -module-name keypaths %s | %FileCheck %s
22
// FIXME: Remove '-disable-experimental-parser-round-trip'.
33

4-
// REQUIRES: swift_feature_KeyPathWithStaticMembers
5-
64

75
import Swift
86

test/SILOptimizer/access_wmo_diagnose.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-swift-frontend -parse-as-library -emit-sil -enforce-exclusivity=checked -primary-file %s -o /dev/null -verify
22

3-
// REQUIRES: swift_feature_KeyPathWithStaticMembers
4-
53
// AccessEnforcementWMO assumes that the only way to address a global or static
64
// property is via a formal begin_access. If we ever allow keypaths for static
75
// properties, which I think is conceivable, then this test will fail to produce

test/SymbolGraph/Symbols/Mixins/DeclarationFragments/Full/Macros.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: swift_feature_Macros
32

43
// RUN: %empty-directory(%t)
54
// RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroDefinition) -module-name=MacroDefinition %S/Inputs/stringify_macro.swift -g -no-toolchain-stdlib-rpath -swift-version 5

test/attr/attr_dynamic_member_lookup.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// REQUIRES: swift_feature_KeyPathWithStaticMembers
4-
53
var global = 42
64

75
@dynamicMemberLookup

test/expr/unary/keypath/keypath.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-swift-frontend -typecheck -parse-as-library %s -verify
22

3-
// REQUIRES: swift_feature_KeyPathWithStaticMembers
4-
53
struct Sub: Hashable {
64
static func ==(_: Sub, _: Sub) -> Bool { return true }
75
func hash(into hasher: inout Hasher) {}

0 commit comments

Comments
 (0)