-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Create new lints with #[clippy::version = "nightly"]
#14299
base: master
Are you sure you want to change the base?
Conversation
(Long text about a problem where I think I came up with a solution while spelling it out. Jump to the last paragraph, if you only want to know the solution) This is a bit awkward for beta/stable branching (what triggers the doc generation): To get the beta commit of Clippy, I check which commit of Clippy is in the beta branch in the Rust repo. This commit is always the commit of the sync 2 weeks before the release. That commit would contain the So to fix that, we (the person doing the syncs) would have to do an extra version replacement during the sync 2 weeks before the release. Or maybe doing so before every sync would be even better. If this needs to be done during sync, we need to automate it with a However checking this in CI is tricky. We could check in the While writing this, we could also get around this: Add a test to |
a66f49a
to
0190457
Compare
That sounds good, here's an example output
|
0190457
to
782a868
Compare
This is a partial solution to https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/Using.20CURRENT_RUSTC_VERSION.20in.20clippy.3A.3Aversion.3F
I was not sure if
CURRENT_RUSTC_VERSION
would work for the stable/beta doc generation so there's no automation here, the versions still need to be manually corrected during the changelog update. But it will eventually (when we're past old PRs withverison = "1.xy.0"
) solve the issue of wrong versions being shown in the docsIf we figure out that
CURRENT_RUSTC_VERSION
can be made to work it would be easy enough to move to alsor? @flip1995
cc @xFrednet
changelog: none