mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
De-underscore @frozen, apply it to structs (#24185)
* De-underscore @frozen for enums * Add @frozen for structs, deprecate @_fixed_layout for them * Switch usage from _fixed_layout to frozen
This commit is contained in:
@@ -91,7 +91,7 @@ public func max<T : Comparable>(_ x: T, _ y: T, _ z: T, _ rest: T...) -> T {
|
||||
/// }
|
||||
/// // Prints "0: foo"
|
||||
/// // Prints "1: bar"
|
||||
@_fixed_layout
|
||||
@frozen
|
||||
public struct EnumeratedSequence<Base: Sequence> {
|
||||
@usableFromInline
|
||||
internal var _base: Base
|
||||
@@ -118,7 +118,7 @@ extension EnumeratedSequence {
|
||||
///
|
||||
/// To create an instance, call
|
||||
/// `enumerated().makeIterator()` on a sequence or collection.
|
||||
@_fixed_layout
|
||||
@frozen
|
||||
public struct Iterator {
|
||||
@usableFromInline
|
||||
internal var _base: Base.Iterator
|
||||
|
||||
Reference in New Issue
Block a user