Skip to content

Commit 3a3e8df

Browse files
committed
[stdlib] Make _undefined non-public
This never should have been made public, given it's a compiler implementation detail let's downgrade it to `@usableFromInline`.
1 parent 3861d58 commit 3a3e8df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/core/AssertCommon.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ func _unimplementedInitializer(className: StaticString,
293293
#if !$Embedded
294294

295295
/// Previously used to evaluate editor placeholders.
296-
public // COMPILER_INTRINSIC
297-
func _undefined<T>(
296+
@usableFromInline // COMPILER_INTRINSIC
297+
internal func _undefined<T>(
298298
_ message: @autoclosure () -> String = String(),
299299
file: StaticString = #file, line: UInt = #line
300300
) -> T {
@@ -304,8 +304,8 @@ func _undefined<T>(
304304
#else
305305

306306
/// Previously used to evaluate editor placeholders.
307-
public // COMPILER_INTRINSIC
308-
func _undefined<T>(
307+
@usableFromInline // COMPILER_INTRINSIC
308+
internal func _undefined<T>(
309309
_ message: @autoclosure () -> StaticString = StaticString(),
310310
file: StaticString = #file, line: UInt = #line
311311
) -> T {

0 commit comments

Comments
 (0)