File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ endif()
17
17
18
18
set (swift_stdlib_unittest_compile_flags
19
19
"-Xfrontend" "-disable-objc-attr-requires-foundation-module" )
20
+
21
+ list (APPEND swift_stdlib_unittest_compile_flags "-enable-experimental-feature" "Lifetimes" )
22
+
20
23
if (SWIFT_RUNTIME_ENABLE_LEAK_CHECKER )
21
24
list (APPEND swift_stdlib_unittest_compile_flags "-DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER" )
22
25
endif ()
Original file line number Diff line number Diff line change @@ -772,7 +772,7 @@ public func expectNil<T: ~Copyable & ~Escapable>(
772
772
}
773
773
774
774
@discardableResult
775
- @lifetime ( copy value)
775
+ @_lifetime ( copy value)
776
776
public func expectNotNil< T: ~ Copyable & ~ Escapable> (
777
777
_ value: consuming T ? ,
778
778
_ message: @autoclosure ( ) -> String = " " ,
You can’t perform that action at this time.
0 commit comments