Skip to content

Qualify use of fatalError with Swift #6847

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 1 commit into from
Aug 26, 2023
Merged

Qualify use of fatalError with Swift #6847

merged 1 commit into from
Aug 26, 2023

Conversation

neonichu
Copy link
Contributor

Users can write a function called fatalError themselves, we should be resilient against that.

resolves swiftlang/swift#68105
resolves #6846

@neonichu neonichu requested a review from abertelrud as a code owner August 24, 2023 00:08
@neonichu neonichu self-assigned this Aug 24, 2023
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment explaining why this is fully qualified so it does not get removed

Users can write a function called `fatalError` themselves, we should be resilient against that.

resolves swiftlang/swift#68105
resolves #6846
@neonichu neonichu force-pushed the qualify-fatalError branch from f99fc91 to 8bb1924 Compare August 25, 2023 23:17
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@neonichu
Copy link
Contributor Author

@swift-ci please test windows

@neonichu neonichu merged commit da66bb1 into main Aug 26, 2023
@neonichu neonichu deleted the qualify-fatalError branch August 26, 2023 02:01
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.

Generated code needs to use full qualification. Code generated by Foundation in my module needs to use full qualification for Swift stdlib
2 participants