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:
@@ -60,7 +60,7 @@ extension String {
|
||||
/// print(asciiPrefix)
|
||||
/// }
|
||||
/// // Prints "My favorite emoji is "
|
||||
@_fixed_layout
|
||||
@frozen
|
||||
public struct UnicodeScalarView {
|
||||
@usableFromInline
|
||||
internal var _guts: _StringGuts
|
||||
@@ -161,7 +161,7 @@ extension String.UnicodeScalarView: BidirectionalCollection {
|
||||
}
|
||||
|
||||
extension String.UnicodeScalarView {
|
||||
@_fixed_layout
|
||||
@frozen
|
||||
public struct Iterator: IteratorProtocol {
|
||||
@usableFromInline
|
||||
internal var _guts: _StringGuts
|
||||
|
||||
Reference in New Issue
Block a user