Skip to content

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Sep 16, 2025

When a module has been imported @preconcurrency in source, when it is printed in a swiftinterface file it should be printed along with the attribute to ensure that type checking of the module's public declarations behaves consistently.

This fix is a little unsatisfying because it adds another linear scan over all imports in the source for each printed import. This should be improved, but it can be done later.

Resolves rdar://136857313.

… files.

When a module has been imported `@preconcurrency` in source, when it is printed
in a `swiftinterface` file it should be printed along with the attribute to
ensure that type checking of the module's public declarations behaves
consistently.

This fix is a little unsatisfying because it adds another a linear scan over
all imports in the source for each printed import. This should be improved, but
it can be done later.

Resolves rdar://136857313.
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

swiftlang/swift-foundation#1510

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

swiftlang/swift-foundation#1512

@swift-ci please smoke test Windows

@tshortli tshortli merged commit 01d458b into swiftlang:main Sep 16, 2025
3 checks passed
@tshortli tshortli deleted the preconcurrency-import-in-swiftinterface branch September 16, 2025 20:09
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.

3 participants