Skip to content

ModuleInterface: Don't alias Foundation module in swiftinterfaces - #76274

Merged
tshortli merged 1 commit into
swiftlang:mainfrom
tshortli:module-alias-foundation
Sep 5, 2024
Merged

ModuleInterface: Don't alias Foundation module in swiftinterfaces#76274
tshortli merged 1 commit into
swiftlang:mainfrom
tshortli:module-alias-foundation

Conversation

@tshortli

@tshortli tshortli commented Sep 5, 2024

Copy link
Copy Markdown
Contributor

Skip aliasing Foundation when -alias-module-names-in-module-interface is specified since it appears to confuse the typechecker. The module name "Foundation" is hardcoded and checked in several places, so aliasing Foundation may be changing some subtle behaviors.

Resolves rdar://128897610.

Skip aliasing Foundation when `-alias-module-names-in-module-interface` is
specified since it appears to confuse the typechecker. The module name
"Foundation" is hardcoded and checked in several places, so aliasing Foundation
may be changing some subtle behaviors.

Resolves rdar://128897610.
@tshortli
tshortli requested a review from xymus September 5, 2024 03:30
@tshortli
tshortli requested a review from artemcm as a code owner September 5, 2024 03:30
@tshortli

tshortli commented Sep 5, 2024

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tshortli

tshortli commented Sep 5, 2024

Copy link
Copy Markdown
Contributor Author

swiftlang/swift-testing#663

@swift-ci please smoke test Windows

@tshortli
tshortli enabled auto-merge September 5, 2024 16:45
@tshortli
tshortli merged commit ddef726 into swiftlang:main Sep 5, 2024
@tshortli
tshortli deleted the module-alias-foundation branch September 5, 2024 19:48
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