Skip to content

GitHub merge Migrator -> swift 4.0 branch #9277

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

Merged
merged 3 commits into from
May 4, 2017
Merged

GitHub merge Migrator -> swift 4.0 branch #9277

merged 3 commits into from
May 4, 2017

Conversation

bitjammer
Copy link
Contributor

@bitjammer bitjammer commented May 4, 2017

Forgot to cherry-pick these after the branch on Monday.

rdar://problem/31895432

bitjammer added 3 commits May 4, 2017 00:38
This CompilerInstance will be used if a fix-it run created an
error-free AST that we can continue to use in the AST passes.

rdar://problem/31926195
With SE-110, the migrator may get a recommendation to add a Void
placeholder in the call to f in:
func foo(f: (Void) -> ()) {
  f()
}
Here, f was () -> () in Swift 3 but now (()) -> () in Swift 4. Adding a
type placeholder in the f() call isn't helpful for migration, although
this particular fix-it should be to fix the f parameter's type.

rdar://problem/31895432
There is no implicit conversion between String and Substring, so
the migrator can offer fix-its to convert between the two by wrapping
in String.init or adding the void subscript [] accordingly. This
commit just adds the tests for migration for the time being.

rdar://problem/30928902
@bitjammer bitjammer changed the title GitHub merge migrator swift 4.0 branch GitHub merge Migrator -> swift 4.0 branch May 4, 2017
@bitjammer
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@bitjammer
Copy link
Contributor Author

@swift-ci Please test

@bitjammer bitjammer merged commit c956106 into swiftlang:swift-4.0-branch May 4, 2017
@bitjammer bitjammer deleted the github-merge-migrator-swift-4.0-branch branch May 4, 2017 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant