Skip to content

Commit 1e6a65a

Browse files
committed
[stdlibUnittest] adjust spellings and a flag
1 parent 0a13d1e commit 1e6a65a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stdlib/private/StdlibUnittest/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ endif()
1717

1818
set(swift_stdlib_unittest_compile_flags
1919
"-Xfrontend" "-disable-objc-attr-requires-foundation-module")
20+
21+
list(APPEND swift_stdlib_unittest_compile_flags "-enable-experimental-feature" "Lifetimes")
22+
2023
if (SWIFT_RUNTIME_ENABLE_LEAK_CHECKER)
2124
list(APPEND swift_stdlib_unittest_compile_flags "-DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER")
2225
endif()

stdlib/private/StdlibUnittest/StdlibUnittest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ public func expectNil<T: ~Copyable & ~Escapable>(
772772
}
773773

774774
@discardableResult
775-
@lifetime(copy value)
775+
@_lifetime(copy value)
776776
public func expectNotNil<T: ~Copyable & ~Escapable>(
777777
_ value: consuming T?,
778778
_ message: @autoclosure () -> String = "",

0 commit comments

Comments
 (0)