Skip to content

Commit 13bf719

Browse files
committed
Freeze the Mach namespace, as it should only ever be used as a namespace
1 parent 3750b96 commit 13bf719

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/System/MachPort.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ private func _machPrecondition(
2323
precondition(kr == expected, file: file, line: line)
2424
}
2525

26+
@frozen
2627
public enum Mach {
2728
@_moveOnly
2829
public struct Port<RightType: MachPortRight> {

0 commit comments

Comments
 (0)