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

Do we want to have a rust-toolchain.toml file in the repo? #269

Closed
sunshowers opened this issue Jul 29, 2024 · 3 comments
Closed

Do we want to have a rust-toolchain.toml file in the repo? #269

sunshowers opened this issue Jul 29, 2024 · 3 comments

Comments

@sunshowers
Copy link
Collaborator

Currently, this repo has a rust-toolchain.toml file in it, pinning the version to 1.75.0:

[toolchain]

Is this something we'd still like to carry around?

Would it make sense to remove the rust-toolchain.toml file, and let CI find issues with the MSRV?

@bnaecker
Copy link
Collaborator

One nice reason is to ensure that we're always testing locally with the CI version. That matters for the trybuild tests mostly, where there can be small variations in the compiler output that aren't that meaningful. I don't feel too strongly though, since practically-speaking most contributors will know how to read and diagnose those errors in CI, even if they don't see them locally without building against that specific toolchain.

@sunshowers
Copy link
Collaborator Author

Thank you! Okay, yeah, the trybuild tests are a great reason to pin the Rust toolchain. I think in that case I'll pin the version to 1.80, and also ensure that CI (minus the trybuild tests) runs on the MSRV.

@sunshowers
Copy link
Collaborator Author

sunshowers commented Aug 7, 2024

Rationale added here:

# The Rust version is pinned because the repo has a number of trybuild tests,
# and rustc's human-readable output is unstable across Rust versions. This
# doesn't have to be the MSRV.

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

No branches or pull requests

2 participants