Skip to content

Replace @_fixed_layout with @frozen in private/OSLog #26392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stdlib/private/OSLog/OSLogMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ internal var logBitsPerByte: Int { return 3 }
/// when you pass a string interpolation to the log APIs.
/// Extend this type with more `appendInterpolation` overloads to enable
/// interpolating additional types.
@_fixed_layout
@frozen
public struct OSLogInterpolation : StringInterpolationProtocol {
/// A format string constructed from the given string interpolation to be
/// passed to the os_log ABI.
Expand Down Expand Up @@ -360,7 +360,7 @@ extension String {
}
}

@_fixed_layout
@frozen
public struct OSLogMessage :
ExpressibleByStringInterpolation, ExpressibleByStringLiteral
{
Expand Down Expand Up @@ -402,7 +402,7 @@ public struct OSLogMessage :
/// are captured within closures and stored in an array. The closures accept an
/// instance of `OSLogByteBufferBuilder`, and when invoked, serialize the
/// argument using the passed `OSLogByteBufferBuilder` instance.
@_fixed_layout
@frozen
@usableFromInline
internal struct OSLogArguments {
/// An array of closures that captures arguments of possibly different types.
Expand Down