dtolnay / rustversion

Conditional compilation according to rustc compiler version
Apache License 2.0
334 stars 15 forks source link

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

Closed Aaron1011 closed 4 years ago

Aaron1011 commented 4 years ago

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