-
Notifications
You must be signed in to change notification settings - Fork 1.9k
rc3.10 mergeback: getting Swift changes back to main #13476
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
396b576
Swift: minimal 5.8 compatibility
redsun82 75684ee
Swift: add 5.8 update QL test
redsun82 b9c4ade
Swift: print only `toBeTested` errors in `Errors.ql` test
redsun82 c945d65
Swift: add clang ignored flag
redsun82 93b9115
Swift: package resource dir from precomiled toolchain
AlexDenisov 17111c9
Swift: accept test expectation changes
redsun82 2daa001
Swift: setup Swift 5.8 unconditionally
AlexDenisov 526f6cd
Swift: skip print_unextracted
AlexDenisov c080cba
Swift: add database migration scripts
AlexDenisov 2212440
Merge pull request #13458 from github/alexdenisov/swift-5.8-against-3.10
AlexDenisov 0479ef5
Merge remote-tracking branch 'origin/rc/3.10' into alexdenisov/rc3.10…
AlexDenisov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
swift/downgrades/147e087e57e51b2eb41e75c9c97380d0e6c20ecb/downgrade.ql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| class Element extends @element { | ||
| string toString() { none() } | ||
| } | ||
|
|
||
| newtype TAddedUnspecifiedElement = | ||
| TNonExplicitClosureExprClosureBody(Element list, Element body) { | ||
| capture_list_exprs(list, body) and not explicit_closure_exprs(body) | ||
| } | ||
|
|
||
| module Fresh = QlBuiltins::NewEntity<TAddedUnspecifiedElement>; | ||
|
|
||
| class TNewElement = @element or Fresh::EntityId; | ||
|
|
||
| class NewElement extends TNewElement { | ||
| string toString() { none() } | ||
| } | ||
|
|
||
| query predicate new_unspecified_elements(NewElement u, string property, string error) { | ||
| unspecified_elements(u, property, error) | ||
| or | ||
| u = Fresh::map(TNonExplicitClosureExprClosureBody(_, _)) and | ||
| property = "closure_body" and | ||
| error = "while downgrading: closure_body not an @explicit_closure_expr" | ||
| } | ||
|
|
||
| query predicate new_unspecified_element_parents(NewElement u, Element parent) { | ||
| unspecified_element_parents(u, parent) | ||
| or | ||
| u = Fresh::map(TNonExplicitClosureExprClosureBody(parent, _)) | ||
| } | ||
|
|
||
| query predicate new_capture_list_exprs(Element list, NewElement body) { | ||
| capture_list_exprs(list, body) and explicit_closure_exprs(body) | ||
| or | ||
| body = Fresh::map(TNonExplicitClosureExprClosureBody(list, _)) | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.