Skip to content

[5.2][stdlib] Don’t use assert() in the stdlib #28730

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

lorentey
Copy link
Member

@lorentey lorentey commented Dec 12, 2019

(Cherry-picked from #28728.)

assert() is designed to be used in user code only; the equivalent stdlib function is called _internalInvariant().

rdar://57101013

assert() is designed to be used in user code only; the equivalent stdlib function is called _internalInvariant().

rdar://57101013
(cherry picked from commit d83a425)
@lorentey lorentey requested a review from a team as a code owner December 12, 2019 03:29
@lorentey
Copy link
Member Author

@swift-ci test

@lorentey lorentey merged commit d93f96e into swiftlang:swift-5.2-branch Dec 12, 2019
@lorentey lorentey deleted the assert-vs-internalInvariant-5.2 branch December 12, 2019 21:38
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