mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -25,7 +25,7 @@ import SwiftShims
|
||||
/// `Collection` conformance. Why not make `_NSArrayCore` conform directly?
|
||||
/// It's a class, and I don't want to pay for the dynamic dispatch overhead.
|
||||
@usableFromInline
|
||||
@_fixed_layout
|
||||
@frozen
|
||||
internal struct _CocoaArrayWrapper : RandomAccessCollection {
|
||||
@usableFromInline
|
||||
typealias Indices = Range<Int>
|
||||
|
||||
Reference in New Issue
Block a user