File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
clippy_lints/src/utils/internal_lints Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ static DEC_CLIPPY_LINT_RE: SyncLazy<Regex> = SyncLazy::new(|| {
1818 r#"(?x)
1919 declare_clippy_lint!\s*[\{(]
2020 (?:\s+///.*)*
21+ (?:\s*\#\[clippy::version\s*=\s*"[^"]*"\])?
2122 \s+pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*
2223 (?P<cat>[a-z_]+)\s*,\s*
2324 "(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ declare_clippy_lint! {
146146 /// "docs": " ### What it does\nCollects metadata about clippy lints for the website. [...] "
147147 /// }
148148 /// ```
149- #[ clippy:: version = "0. 1.56" ]
149+ #[ clippy:: version = "1.56.0 " ]
150150 pub INTERNAL_METADATA_COLLECTOR ,
151151 internal_warn,
152152 "A busy bee collection metadata about lints"
Original file line number Diff line number Diff line change @@ -339,7 +339,10 @@ <h2 class="panel-title">
339339 < span class ="label label-default label-applicability "> {{lint.applicability.applicability}}</ span >
340340 < a href ="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants "> (?)</ a >
341341 </ div >
342- <!-- TODO xFrednet 2021-05-19: Somehow collect and show the version See rust-clippy#6492 -->
342+ <!-- Clippy version -->
343+ < div class ="lint-additional-info-item ">
344+ Rust version: < span class ="label label-default label-applicability "> {{lint.version}}</ span >
345+ </ div >
343346 <!-- Open related issues -->
344347 < div class ="lint-additional-info-item ">
345348 < a href ="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+{{lint.id}} "> Related Issues</ a >
You can’t perform that action at this time.
0 commit comments