mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
Cleanup README for clippy-preview on stable
With the 1.29 release, the `clippy-preview` component will be available on stable which means we don't need nightly/beta anymore.
This commit is contained in:
parent
07cb45bc85
commit
c9c32a665e
1 changed files with 5 additions and 25 deletions
30
README.md
30
README.md
|
@ -45,7 +45,7 @@ subcommand.
|
||||||
#### Step 1: Install rustup
|
#### Step 1: Install rustup
|
||||||
|
|
||||||
You can install [rustup](http://rustup.rs/) on supported platforms. This will help
|
You can install [rustup](http://rustup.rs/) on supported platforms. This will help
|
||||||
us install clippy and its dependencies.
|
us install Clippy and its dependencies.
|
||||||
|
|
||||||
If you already have rustup installed, update to ensure you have the latest
|
If you already have rustup installed, update to ensure you have the latest
|
||||||
rustup and compiler:
|
rustup and compiler:
|
||||||
|
@ -54,26 +54,15 @@ rustup and compiler:
|
||||||
rustup update
|
rustup update
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Step 2: Install nightly toolchain
|
#### Step 2: Install Clippy
|
||||||
|
|
||||||
Rustup integration is still new, you will need a relatively new nightly (2018-07-15 or later).
|
Once you have rustup and the latest stable release (at least Rust 1.29) installed, run the following command:
|
||||||
|
|
||||||
To install Rust nightly with [rustup](https://rustup.rs/):
|
|
||||||
|
|
||||||
```terminal
|
```terminal
|
||||||
rustup install nightly
|
rustup component add clippy-preview
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Step 3: Install clippy
|
Now you can run Clippy by invoking `cargo clippy`.
|
||||||
|
|
||||||
Once you have rustup and the nightly toolchain installed, run the following command:
|
|
||||||
|
|
||||||
```terminal
|
|
||||||
rustup component add clippy-preview --toolchain=nightly
|
|
||||||
```
|
|
||||||
|
|
||||||
Now you can run Clippy by invoking `cargo +nightly clippy`. If nightly is your
|
|
||||||
default toolchain in rustup, `cargo clippy` will work fine.
|
|
||||||
|
|
||||||
### Running Clippy from the command line without installing it
|
### Running Clippy from the command line without installing it
|
||||||
|
|
||||||
|
@ -133,15 +122,6 @@ enable/disable Clippy lints until `tool_lints` are stable:
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]
|
#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating rustc
|
|
||||||
|
|
||||||
Sometimes, rustc moves forward without Clippy catching up. Therefore updating
|
|
||||||
rustc may leave Clippy a non-functional state until we fix the resulting
|
|
||||||
breakage.
|
|
||||||
|
|
||||||
You can use the [rust-update](rust-update) script to update rustc only if
|
|
||||||
Clippy would also update correctly.
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Licensed under [MPL](https://www.mozilla.org/MPL/2.0/).
|
Licensed under [MPL](https://www.mozilla.org/MPL/2.0/).
|
||||||
|
|
Loading…
Reference in a new issue