Skip to content

Commit 04e251f

Browse files
committed
readme: tool lints are stable now
1 parent 5b01f7a commit 04e251f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,7 @@ You can add options to your code to `allow`/`warn`/`deny` Clippy lints:
149149

150150
Note: `deny` produces errors instead of warnings.
151151

152-
Note: To use the new `clippy::lint_name` syntax, a recent compiler has to be used
153-
currently. If you want to compile your code with the stable toolchain you can use a `cfg_attr` to
154-
activate the `tool_lints` feature:
155-
```rust
156-
#![cfg_attr(feature = "cargo-clippy", allow(clippy::lint_name))]
157-
```
158-
159-
For this to work you have to use Clippy on the nightly toolchain: `cargo +nightly clippy`. If you
160-
want to use Clippy with the stable toolchain, you can stick to the old unscoped method to
161-
enable/disable Clippy lints until `tool_lints` are stable:
162-
```rust
163-
#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]
164-
```
165-
166-
If you do not want to include your lint levels in your code, you can globally enable/disable lints by passing extra flags to clippy during the run: `cargo clippy -- -A lint_name` will run clippy with `lint_name` disabled and `cargo clippy -- -W lint_name` will run it with that enabled. On newer compilers you may need to use `clippy::lint_name` instead.
152+
If you do not want to include your lint levels in your code, you can globally enable/disable lints by passing extra flags to clippy during the run: `cargo clippy -- -A clippy::lint_name` will run clippy with `lint_name` disabled and `cargo clippy -- -W clippy::lint_name` will run it with that enabled.
167153

168154
## License
169155

0 commit comments

Comments
 (0)