diff options
| author | Philipp Hansch <dev@phansch.net> | 2018-12-10 22:04:27 +0100 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2018-12-10 22:04:27 +0100 |
| commit | 04e251f623b7880fe2c0bd1ae247c52bc69b597a (patch) | |
| tree | cb46265db7a75130064e86e9fcc73aec9b7fa345 | |
| parent | 5b01f7a0d6be3ed7485dc6421d0cffa456b63ade (diff) | |
| download | rust-04e251f623b7880fe2c0bd1ae247c52bc69b597a.tar.gz rust-04e251f623b7880fe2c0bd1ae247c52bc69b597a.zip | |
readme: tool lints are stable now
| -rw-r--r-- | README.md | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/README.md b/README.md index 49c0a1f1546..928c961c017 100644 --- a/README.md +++ b/README.md @@ -149,21 +149,7 @@ You can add options to your code to `allow`/`warn`/`deny` Clippy lints: Note: `deny` produces errors instead of warnings. -Note: To use the new `clippy::lint_name` syntax, a recent compiler has to be used -currently. If you want to compile your code with the stable toolchain you can use a `cfg_attr` to -activate the `tool_lints` feature: -```rust -#![cfg_attr(feature = "cargo-clippy", allow(clippy::lint_name))] -``` - -For this to work you have to use Clippy on the nightly toolchain: `cargo +nightly clippy`. If you -want to use Clippy with the stable toolchain, you can stick to the old unscoped method to -enable/disable Clippy lints until `tool_lints` are stable: -```rust -#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))] -``` - -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. +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. ## License |
