Skip to content
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

move assertions out of system #19599

Merged
merged 1 commit into from
Mar 23, 2022
Merged

move assertions out of system #19599

merged 1 commit into from
Mar 23, 2022

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Mar 9, 2022

Comment on lines +1833 to +1837
when not defined(nimPreviewSlimSystem):
{.deprecated: """assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and
import `std/assertions`.""".}
import std/assertions
export assertions
Copy link
Member Author

Choose a reason for hiding this comment

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

review here

Copy link
Member

Choose a reason for hiding this comment

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

This is a bad idea, users have no control over system.nim. Instead remove the import/export of assertions and patch the tests. Important packages can be compiled via --useVersion:1.6 or similar.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, here is the first step: #19601 (support useVersion:1.6)

Copy link
Member Author

Choose a reason for hiding this comment

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

Is something like this okay?

#19602

lib/std/assertions.nim Show resolved Hide resolved
@ringabout
Copy link
Member Author

Except the two files I mentioned above, others changes are about import std/assertions(syncio) under -d:nimPreviewSlimSystem condition.

I use command koch temp --lib:lib -d:nimPreviewSlimSystem for now. Following PRs will use koch boot to check the compiler.

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