Skip to content

Commit 05293f2

Browse files
committed
[stdlib] Remove '@_frozen' from enums that shouldn't be frozen
Error codes, FloatingPointRoundingRule, Mirror.AncestorRepresentation, Mirror.DisplayStyle, and PlaygroundQuickLook.
1 parent 1b1a4cb commit 05293f2

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

stdlib/public/Platform/MachError.swift

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

1313
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
1414
/// Enumeration describing Mach error codes.
15-
@_frozen // FIXME(sil-serialize-all)
1615
@objc
1716
public enum MachErrorCode : Int32 {
1817
case success = 0

stdlib/public/Platform/POSIXError.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
1616

1717
/// Enumeration describing POSIX error codes.
18-
@_frozen // FIXME(sil-serialize-all)
1918
@objc
2019
public enum POSIXErrorCode : Int32 {
2120
/// Operation not permitted.
@@ -269,7 +268,6 @@ public enum POSIXErrorCode : Int32 {
269268
#elseif os(Linux) || os(Android)
270269

271270
/// Enumeration describing POSIX error codes.
272-
@_frozen // FIXME(sil-serialize-all)
273271
public enum POSIXErrorCode : Int32 {
274272
/// Operation not permitted.
275273
case EPERM = 1

stdlib/public/core/Codable.swift.gyb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,6 @@ public struct CodingUserInfoKey : RawRepresentable, Equatable, Hashable {
11011101
//===----------------------------------------------------------------------===//
11021102

11031103
/// An error that occurs during the encoding of a value.
1104-
@_frozen // FIXME(sil-serialize-all)
11051104
public enum EncodingError : Error {
11061105
/// The context in which the error occurred.
11071106
@_fixed_layout // FIXME(sil-serialize-all)
@@ -1190,7 +1189,6 @@ public enum EncodingError : Error {
11901189
}
11911190

11921191
/// An error that occurs during the decoding of a value.
1193-
@_frozen // FIXME(sil-serialize-all)
11941192
public enum DecodingError : Error {
11951193
/// The context in which the error occurred.
11961194
@_fixed_layout // FIXME(sil-serialize-all)

stdlib/public/core/FloatingPoint.swift.gyb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,6 @@ public enum FloatingPointClassification {
12671267
}
12681268

12691269
/// A rule for rounding a floating-point number.
1270-
@_frozen // FIXME(sil-serialize-all)
12711270
public enum FloatingPointRoundingRule {
12721271
/// Round to the closest allowed value; if two values are equally close, the
12731272
/// one with greater magnitude is chosen.

stdlib/public/core/Mirror.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public struct Mirror {
6969
/// its mirror represents ancestor classes by initializing the mirror
7070
/// with an `AncestorRepresentation`. This setting has no effect on mirrors
7171
/// reflecting value type instances.
72-
@_frozen // FIXME(sil-serialize-all)
7372
public enum AncestorRepresentation {
7473

7574
/// Generates a default mirror for all ancestor classes.
@@ -152,7 +151,6 @@ public struct Mirror {
152151
/// Playgrounds and the debugger will show a representation similar
153152
/// to the one used for instances of the kind indicated by the
154153
/// `DisplayStyle` case name when the mirror is used for display.
155-
@_frozen // FIXME(sil-serialize-all)
156154
public enum DisplayStyle {
157155
case `struct`, `class`, `enum`, tuple, optional, collection
158156
case dictionary, `set`
@@ -503,7 +501,6 @@ extension Mirror {
503501
/// // With Swift 4.0 and Swift 3.2 and earlier, use PlaygroundQuickLook
504502
/// // and the CustomPlaygroundQuickLookable protocol.
505503
/// #endif
506-
@_frozen // FIXME(sil-serialize-all)
507504
@available(*, deprecated, message: "PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.")
508505
public enum PlaygroundQuickLook {
509506
/// Plain text.

0 commit comments

Comments
 (0)