Skip to content

Commit d0d2822

Browse files
committed
Example clippy::version attributes for testing
1 parent cb8c95e commit d0d2822

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

clippy_lints/src/absurd_extreme_comparisons.rs

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

clippy_lints/src/approx_const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +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"]
3637
pub APPROX_CONSTANT,
3738
correctness,
3839
"the approximate of a known float constant (in `std::fXX::consts`)"

clippy_lints/src/assign_ops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ declare_clippy_lint! {
3434
/// // Good
3535
/// a += b;
3636
/// ```
37+
#[clippy::version = "0.0.83"]
3738
pub ASSIGN_OP_PATTERN,
3839
style,
3940
"assigning the result of an operation on a variable to that same variable"

clippy_lints/src/swap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +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"]
6364
pub ALMOST_SWAPPED,
6465
correctness,
6566
"`foo = bar; bar = foo` sequence"

0 commit comments

Comments
 (0)