Skip to content

[5.5] [test] Use %refactor-check-compiles in more places #39007

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

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Aug 23, 2021

5.5 cherry-pick of #37966, #38857 & #38915.

This is NFC, cherry-picking purely to avoid future merge conflicts in the event we pull more async refactoring changes into the 5.5 branch.


Add a hidden frontend flag -warn-on-editor-placeholder that allows %refactor-check-compiles to be more lenient with placeholders, and update a bunch of async refactoring tests to use %refactor-check-compiles in more cases.

Note the diff is best viewed without whitespace.

rdar://81830915

@hamishknight hamishknight requested a review from a team as a code owner August 23, 2021 20:11
@hamishknight hamishknight requested a review from akyrtzi August 23, 2021 20:11
@bnbarham
Copy link
Contributor

@hamishknight IF-LET-RETURN-CLASSIFICATION-NEXT doesn't have a IF-LET-RETURN-CLASSIFICATION first in path_classification.swift. Seems that was fixed in f5b00fc on main.

@swiftlang swiftlang deleted a comment from swift-ci Aug 24, 2021
`%build-clang-importer-objc-overlays` builds the
overlays for the current target rather than the
host, so update the `%refactor` invocations to
take the target as an argument.

rdar://81128571
This hidden frontend option lets us be more lax
when type-checking in the presence of editor
placeholders by treating them as holes during
constraint solving.
This allows us to test more cases that type-check
modulo placeholders.
Forward these flags to both swift-frontend and
swift-refactor.
Update a bunch of async refactoring tests to use
%refactor-check-compiles in more cases.
@hamishknight hamishknight force-pushed the refactor-test-changes-5.5 branch from e0bf665 to 36d85f5 Compare August 24, 2021 10:03
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 7105644 into swiftlang:release/5.5 Aug 24, 2021
@hamishknight hamishknight deleted the refactor-test-changes-5.5 branch August 24, 2021 16:41
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants