Open glandium opened 3 years ago
I think this is because #[rustversion::before(...)
is defined as "Negative of #[rustversion::since(...)].
", and #[rustversion::since(<some-nightly-version>)]
is defined as "True on that nightly and all newer ones". That would mean that even newer stables than that nightly would not match.
If this is an intentional design decision by @dtolnay, what you want seems to be achieved by #[rustversion::all(nightly, before(2020-01-01))]
Building the following:
fails as expected with recent nightlies (because of the missing main function in that case) but compiles just fine with 1.51.0.
since() is limited to nightlies. It seems before() should too.