Skip to content

Commit d6db677

Browse files
committed
Auto merge of #3527 - phansch:update_readme2, r=matthiaskrgr
readme: tool lints are stable now None
2 parents 0fd7fe9 + 0c93e4c commit d6db677

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

README.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ script:
106106
# etc.
107107
```
108108

109-
It might happen that clippy is not available for a certain nightly release.
110-
In this case you can try to conditionally install clippy from the git repo.
109+
It might happen that Clippy is not available for a certain nightly release.
110+
In this case you can try to conditionally install Clippy from the git repo.
111111

112112
```yaml
113113
language: rust
@@ -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. This also works with lint groups. For example you can run Clippy with warnings for all lints enabled: `cargo clippy -- -W clippy::pedantic`
167153

168154
## License
169155

0 commit comments

Comments
 (0)