File tree 3 files changed +6
-2
lines changed
clippy_lints/src/utils/internal_lints
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(|| {
18
18
r#"(?x)
19
19
declare_clippy_lint!\s*[\{(]
20
20
(?:\s+///.*)*
21
+ (?:\s*\#\[clippy::version\s*=\s*"[^"]*"\])?
21
22
\s+pub\s+(?P<name>[A-Z_][A-Z_0-9]*)\s*,\s*
22
23
(?P<cat>[a-z_]+)\s*,\s*
23
24
"(?P<desc>(?:[^"\\]+|\\(?s).(?-s))*)"\s*[})]
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ declare_clippy_lint! {
146
146
/// "docs": " ### What it does\nCollects metadata about clippy lints for the website. [...] "
147
147
/// }
148
148
/// ```
149
- #[ clippy:: version = "0. 1.56" ]
149
+ #[ clippy:: version = "1.56.0 " ]
150
150
pub INTERNAL_METADATA_COLLECTOR ,
151
151
internal_warn,
152
152
"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">
339
339
< span class ="label label-default label-applicability "> {{lint.applicability.applicability}}</ span >
340
340
< a href ="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants "> (?)</ a >
341
341
</ 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 >
343
346
<!-- Open related issues -->
344
347
< div class ="lint-additional-info-item ">
345
348
< 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