@@ -28,23 +28,29 @@ lint levels with tool lint attributes using the `clippy::` prefix:
28
28
```
29
29
30
30
The implicit ` feature = "cargo-clippy" ` has only been kept for backwards
31
- compatibility, but will now be deprecated.
31
+ compatibility, but will be deprecated in upcoming nightlies and later in
32
+ ` 1.78.0 ` .
32
33
33
34
## Alternative
34
35
35
36
As there is a rare [ use case] for conditional compilation depending on Clippy,
36
- we will provide an alternative. So in the future you will be able to use:
37
+ we will provide an alternative. So in the future (` 1.78.0 ` ) you will be able to
38
+ use:
37
39
38
40
``` rust
39
41
#[cfg(clippy)]
40
42
```
41
43
42
44
## Transitioning
43
45
46
+ > Should you only use stable toolchains, you can wait with the transition until
47
+ > Rust ` 1.78.0 ` (2024-05-02) is released.
48
+
44
49
Should you have instances of ` feature = "cargo-clippy" ` in your code base, you
45
50
will see a warning from the new Clippy lint
46
- [ ` clippy::deprecated_clippy_cfg_attr ` ] [ pr-12292 ] . This lint can automatically fix
47
- your code. So if you should see this lint triggering, just run:
51
+ [ ` clippy::deprecated_clippy_cfg_attr ` ] available in the latest nightly Clippy.
52
+ This lint can automatically fix your code. So if you should see this lint
53
+ triggering, just run:
48
54
49
55
```
50
56
cargo clippy --fix -- -Aclippy::all -Wclippy::deprecated_clippy_cfg_attr
@@ -85,6 +91,6 @@ deprecate the implicit `feature = "cargo-clippy"` config and replace it with the
85
91
[ `v0.0.97` ] : https://github.com/rust-lang/rust-clippy/blob/61daf674eaf17f3b504c51f01b4ee63fac47dfcf/CHANGELOG.md?plain=0#0097--2016-11-03
86
92
[ rfc-3013 ] : https://github.com/rust-lang/rfcs/pull/3013
87
93
[ use case ] : https://doc.rust-lang.org/clippy/configuration.html#disabling-evaluation-of-certain-code
88
- [ pr-12292 ] : https://github.com/ rust-lang/rust-clippy/pull/12292
94
+ [ `clippy::deprecated_clippy_cfg_attr` ] : https://rust-lang.github.io /rust-clippy/master/index.html#/deprecated_clippy_cfg_attr
89
95
[ cargo-lints ] : https://doc.rust-lang.org/cargo/reference/manifest.html#the-lints-section
90
96
[ call for testing ] : https://github.com/rust-lang/rfcs/pull/3013#issuecomment-1936648479
0 commit comments