Skip to content

Commit 5bd781b

Browse files
committed
Make _debugPrecondition internal
1 parent 47f5e90 commit 5bd781b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/core/Assert.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ public func _overflowChecked<T>(
253253
/// and abort.
254254
/// They are meant to be used when the check is not comprehensively checking for
255255
/// all possible errors.
256-
@_transparent
257-
public func _debugPrecondition(
256+
@usableFromInline @_transparent
257+
internal func _debugPrecondition(
258258
_ condition: @autoclosure () -> Bool, _ message: StaticString = StaticString(),
259259
file: StaticString = #file, line: UInt = #line
260260
) {
@@ -267,8 +267,8 @@ public func _debugPrecondition(
267267
}
268268
}
269269

270-
@_transparent
271-
public func _debugPreconditionFailure(
270+
@usableFromInline @_transparent
271+
internal func _debugPreconditionFailure(
272272
_ message: StaticString = StaticString(),
273273
file: StaticString = #file, line: UInt = #line
274274
) -> Never {

0 commit comments

Comments
 (0)