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()
1717
1818set (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+
2023if (SWIFT_RUNTIME_ENABLE_LEAK_CHECKER)
2124 list (APPEND swift_stdlib_unittest_compile_flags "-DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER" )
2225endif ()
Original file line number Diff line number Diff line change @@ -772,7 +772,7 @@ public func expectNil<T: ~Copyable & ~Escapable>(
772772}
773773
774774@discardableResult
775- @lifetime ( copy value)
775+ @_lifetime ( copy value)
776776public func expectNotNil< T: ~ Copyable & ~ Escapable> (
777777 _ value: consuming T ? ,
778778 _ message: @autoclosure ( ) -> String = " " ,
You can’t perform that action at this time.
0 commit comments