-
Notifications
You must be signed in to change notification settings - Fork 25
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
Test on MSRV in CI #285
Comments
Hmm... weird that cargo allows a crate to depend on crates with a higher msrv But that would indeed not help with ensuring it actually builds. We can't really run tests tho, as those are tied to the latest version as we do test rustc output directly, but hopefully that doesn't matter. I'll ponder on this some more, but we should def bump msrv to 1.73 which is supported by rustfix 0.8.1, which is what it says on our Cargo.toml |
Does that imply that you can't run ui-test to assert on the output of specific (older) compiler toolchains? Or am I misunderstanding? The reason I ask is that what we do in our CI is pin specific versions of Rust (we test with multiple). We have error output tests (using trybuild) that are each specific to a particular version of Rust. Would you maybe be able to do the same? So you could pin your MSRV toolchain and test on it in CI (in addition to whatever other toolchains you want to test on). I can link to the source code on our side if you're curious how we do it. |
I guess I can pin it again and always test and work on the msrv. We stopped pinning because @RalfJung ended up with too many locally installed toolchains xD |
If that works, why can't CI do it? What CI certainly can do is |
yes, that's what I'm going to do, I just had a brain fart when I wrote
As I assumed we'd work with the latest rustc and just test MSRV in CI to ensure everything builds |
Sounds good! This may be overkill for y'all, but we wrote a
|
It appears as though the MSRV is not tested in CI, and so it isn't actually supported. E.g., taking a dependency on 0.27.1:
The text was updated successfully, but these errors were encountered: