Skip to content

Commit 9cf6f3b

Browse files
committed
Adjusted lint version and update_lints regex
1 parent 2e7f4b7 commit 9cf6f3b

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

clippy_dev/src/update_lints.rs

+1
Original file line numberDiff line numberDiff 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*[})]

clippy_lints/src/absurd_extreme_comparisons.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare_clippy_lint! {
3636
/// if vec.len() <= 0 {}
3737
/// if 100 > i32::MAX {}
3838
/// ```
39-
#[clippy::version = "0.0.105"]
39+
#[clippy::version = "pre 1.29.0"]
4040
pub ABSURD_EXTREME_COMPARISONS,
4141
correctness,
4242
"a comparison with a maximum or minimum value that is always true or false"

clippy_lints/src/approx_const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare_clippy_lint! {
3333
/// let x = std::f32::consts::PI;
3434
/// let y = std::f64::consts::FRAC_1_PI;
3535
/// ```
36-
#[clippy::version = "0.0.83"]
36+
#[clippy::version = "pre 1.29.0"]
3737
pub APPROX_CONSTANT,
3838
correctness,
3939
"the approximate of a known float constant (in `std::fXX::consts`)"

clippy_lints/src/assign_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare_clippy_lint! {
3434
/// // Good
3535
/// a += b;
3636
/// ```
37-
#[clippy::version = "0.0.83"]
37+
#[clippy::version = "pre 1.29.0"]
3838
pub ASSIGN_OP_PATTERN,
3939
style,
4040
"assigning the result of an operation on a variable to that same variable"

clippy_lints/src/swap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare_clippy_lint! {
6060
/// # let mut b = 2;
6161
/// std::mem::swap(&mut a, &mut b);
6262
/// ```
63-
#[clippy::version = "0.0.83"]
63+
#[clippy::version = "pre 1.29.0"]
6464
pub ALMOST_SWAPPED,
6565
correctness,
6666
"`foo = bar; bar = foo` sequence"

clippy_lints/src/utils/internal_lints/metadata_collector.rs

+1-1
Original file line numberDiff line numberDiff 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"

util/gh-pages/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ <h2 class="panel-title">
341341
</div>
342342
<!-- Clippy version -->
343343
<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>
345345
</div>
346346
<!-- Open related issues -->
347347
<div class="lint-additional-info-item">

0 commit comments

Comments
 (0)