Skip to content

Sema: Fix the -warn-long-expression-type-checking flag #82506

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

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jun 25, 2025

Fixes rdar://152998878.

This flag regressed because the test for it has been disabled since 2018. Re-enable it, "fixing" rdar://44305428.

@slavapestov slavapestov force-pushed the warn-long-expression-type-checking branch from 7ddb47e to f4469ac Compare June 25, 2025 22:53
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

…s turned off

My change 983b75e broke
-warn-long-expression-type-checking because now the
ExpressionTimer is not instantiated by default and that
entire code path is skipped.

Change it so that if -warn-long-expression-type-checking
is passed in, we still start the timer, we just don't
ever consider it to have 'expired'.

Fixes rdar://problem/152998878.
@slavapestov slavapestov force-pushed the warn-long-expression-type-checking branch from 7dd559c to 487918f Compare June 26, 2025 02:07
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 34253a8 into swiftlang:main Jun 27, 2025
3 checks passed
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.

2 participants