File tree 7 files changed +7
-6
lines changed
7 files changed +7
-6
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 @@ -36,7 +36,7 @@ declare_clippy_lint! {
36
36
/// if vec.len() <= 0 {}
37
37
/// if 100 > i32::MAX {}
38
38
/// ```
39
- #[ clippy:: version = "0.0.105 " ]
39
+ #[ clippy:: version = "pre 1.29.0 " ]
40
40
pub ABSURD_EXTREME_COMPARISONS ,
41
41
correctness,
42
42
"a comparison with a maximum or minimum value that is always true or false"
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ declare_clippy_lint! {
33
33
/// let x = std::f32::consts::PI;
34
34
/// let y = std::f64::consts::FRAC_1_PI;
35
35
/// ```
36
- #[ clippy:: version = "0.0.83 " ]
36
+ #[ clippy:: version = "pre 1.29.0 " ]
37
37
pub APPROX_CONSTANT ,
38
38
correctness,
39
39
"the approximate of a known float constant (in `std::fXX::consts`)"
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ declare_clippy_lint! {
34
34
/// // Good
35
35
/// a += b;
36
36
/// ```
37
- #[ clippy:: version = "0.0.83 " ]
37
+ #[ clippy:: version = "pre 1.29.0 " ]
38
38
pub ASSIGN_OP_PATTERN ,
39
39
style,
40
40
"assigning the result of an operation on a variable to that same variable"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ declare_clippy_lint! {
60
60
/// # let mut b = 2;
61
61
/// std::mem::swap(&mut a, &mut b);
62
62
/// ```
63
- #[ clippy:: version = "0.0.83 " ]
63
+ #[ clippy:: version = "pre 1.29.0 " ]
64
64
pub ALMOST_SWAPPED ,
65
65
correctness,
66
66
"`foo = bar; bar = foo` sequence"
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 @@ -341,7 +341,7 @@ <h2 class="panel-title">
341
341
</ div >
342
342
<!-- Clippy version -->
343
343
< div class ="lint-additional-info-item ">
344
- Clippy version: < span class ="label label-default label-applicability "> {{lint.version}}</ span >
344
+ Rust version: < span class ="label label-default label-applicability "> {{lint.version}}</ span >
345
345
</ div >
346
346
<!-- Open related issues -->
347
347
< div class ="lint-additional-info-item ">
You can’t perform that action at this time.
0 commit comments