-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib]Enable Swift 4 mode for the overlays #12608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
cmake/modules/SwiftSource.cmake
Outdated
@@ -257,7 +257,7 @@ function(_compile_swift_files | |||
endif() | |||
|
|||
# Force swift 3 compatibility mode for Standard Library and overlay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be updated then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call :)
@swift-ci please smoke benchmark |
@swift-ci please test |
Build failed |
@swift-ci Please Test Source Compatibility |
@swift-ci Please smoke test compiler performance |
Build failed |
Build comment file:Optimized (O)Regression (5)
Improvement (4)
No Changes (325)
Unoptimized (Onone)Regression (11)
Improvement (9)
No Changes (314)
Hardware Overview
|
Source compat suite? |
It might also be good to explicitly pass |
@swift-ci please test |
@swift-ci Please Test Source Compatibility |
Build failed |
Build failed |
@swift-ci please test OS X platform |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test OS X platform |
Build failed |
@swift-ci please test Linux platform |
Build failed |
@swift-ci Please Test Source Compatibility |
1 similar comment
@swift-ci Please Test Source Compatibility |
Ta-da! @lancep sorry, it's you =) |
Booo |
@moiseev any objections? |
@@ -55,11 +55,11 @@ public extension XCUIElement { | |||
func _XCTRegisterFailure(_ expected: Bool, _ condition: String, _ message: @autoclosure () -> String, _ file: StaticString, _ line: UInt) { | |||
// Call the real _XCTFailureHandler. | |||
let test = _XCTCurrentTestCase() | |||
_XCTPreformattedFailureHandler(test, expected, file.description, line, condition, message()) | |||
_XCTPreformattedFailureHandler(test, expected, file.description, Int(line), condition, message()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just change the argument to Int here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because that just meant a cast in more places. This is called from APIs such as XCTFail
, and we can't change the signature there. So doing one cast here was less change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reverts commit f54d8b4.
This reverts commit f54d8b4.
This builds the SDK overlays in Swift 4 mode.