Skip to content

Commit c09cd63

Browse files
authored
Merge pull request swiftlang#2979 from DougGregor/remove-unsafe-expression-experimental
Remove experimental feature unsafeExpression
2 parents 219fa33 + 393a08f commit c09cd63

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

CodeGeneration/Sources/SyntaxSupport/ExperimentalFeatures.swift

-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public enum ExperimentalFeature: String, CaseIterable {
2121
case coroutineAccessors
2222
case valueGenerics
2323
case abiAttribute
24-
case unsafeExpression
2524

2625
/// The name of the feature as it is written in the compiler's `Features.def` file.
2726
public var featureName: String {
@@ -42,8 +41,6 @@ public enum ExperimentalFeature: String, CaseIterable {
4241
return "ValueGenerics"
4342
case .abiAttribute:
4443
return "ABIAttribute"
45-
case .unsafeExpression:
46-
return "WarnUnsafe"
4744
}
4845
}
4946

@@ -66,8 +63,6 @@ public enum ExperimentalFeature: String, CaseIterable {
6663
return "value generics"
6764
case .abiAttribute:
6865
return "@abi attribute"
69-
case .unsafeExpression:
70-
return "'unsafe' expression"
7166
}
7267
}
7368

Sources/SwiftParser/generated/ExperimentalFeatures.swift

-5
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ extension Parser.ExperimentalFeatures {
4848
/// Whether to enable the parsing of @abi attribute.
4949
public static let abiAttribute = Self (rawValue: 1 << 7)
5050

51-
/// Whether to enable the parsing of 'unsafe' expression.
52-
public static let unsafeExpression = Self (rawValue: 1 << 8)
53-
5451
/// Creates a new value representing the experimental feature with the
5552
/// given name, or returns nil if the name is not recognized.
5653
public init?(name: String) {
@@ -71,8 +68,6 @@ extension Parser.ExperimentalFeatures {
7168
self = .valueGenerics
7269
case "ABIAttribute":
7370
self = .abiAttribute
74-
case "WarnUnsafe":
75-
self = .unsafeExpression
7671
default:
7772
return nil
7873
}

0 commit comments

Comments
 (0)