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

Add rustversion::since_date and rustversion::before_date #17

Closed

Conversation

Aaron1011
Copy link

These selectors work like since and before, but consider stable and
beta compilers as well. This is useful when working around a compiler
bug, since all versions that include a particular fix can be targeted.

I'm not sure how best to write a test for this

These selectors work like `since` and `before`, but consider stable and
beta compilers as well. This is useful when working around a compiler
bug, since all versions that include a particular fix can be targeted.

I'm not sure how best to write a test for this
Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I think I would prefer not to build this into rustversion, but this would be reasonable to distribute in a fork. I have been interested in seeing other libraries do rustversion-style conditional compilation (dtolnay/request-for-implementation#44 is another idea in this direction).

@dtolnay dtolnay closed this Jul 3, 2020
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.

None yet

2 participants