Rollup merge of #152815 - blyxyas:current-rustc-version-clippy, r=Mark-Simulacrum

Add CURRENT_RUSTC_VERSION support for Clippy

We've been talking about this since Sept. 2022, finally decided to add the dreaded 1-line diff.

cc https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/Using.20CURRENT_RUSTC_VERSION.20in.20clippy.3A.3Aversion.3F/with/516468805

cc https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/Use.20CURRENT_RUSTC_VERSION.20for.20version.20attribute/with/299900715

Overrides the currently unmerged rust-lang/rust-clippy#14299

cc @rust-lang/clippy

---

This PR does not modify in any way the needed behaviour of T-Release when releasing (I hope)
This commit is contained in:
Jonathan Brouwer
2026-02-19 10:56:38 +01:00
committed by GitHub
@@ -15,6 +15,7 @@ fn main() {
&root_path.join("library"),
&root_path.join("src/doc/rustc"),
&root_path.join("src/doc/rustdoc"),
&root_path.join("src/tools/clippy"),
],
|path, _is_dir| filter_dirs(path),
&mut |entry, contents| {