@@ -45,7 +45,7 @@ subcommand.
45
45
#### Step 1: Install rustup
46
46
47
47
You can install [ rustup] ( http://rustup.rs/ ) on supported platforms. This will help
48
- us install clippy and its dependencies.
48
+ us install Clippy and its dependencies.
49
49
50
50
If you already have rustup installed, update to ensure you have the latest
51
51
rustup and compiler:
@@ -54,26 +54,15 @@ rustup and compiler:
54
54
rustup update
55
55
```
56
56
57
- #### Step 2: Install nightly toolchain
57
+ #### Step 2: Install Clippy
58
58
59
- Rustup integration is still new, you will need a relatively new nightly (2018-07-15 or later).
60
-
61
- To install Rust nightly with [ rustup] ( https://rustup.rs/ ) :
59
+ Once you have rustup and the latest stable release (at least Rust 1.29) installed, run the following command:
62
60
63
61
``` terminal
64
- rustup install nightly
62
+ rustup component add clippy-preview
65
63
```
66
64
67
- #### Step 3: Install clippy
68
-
69
- Once you have rustup and the nightly toolchain installed, run the following command:
70
-
71
- ``` terminal
72
- rustup component add clippy-preview --toolchain=nightly
73
- ```
74
-
75
- Now you can run Clippy by invoking ` cargo +nightly clippy ` . If nightly is your
76
- default toolchain in rustup, ` cargo clippy ` will work fine.
65
+ Now you can run Clippy by invoking ` cargo clippy ` .
77
66
78
67
### Running Clippy from the command line without installing it
79
68
@@ -133,15 +122,6 @@ enable/disable Clippy lints until `tool_lints` are stable:
133
122
#![cfg_attr(feature = " cargo-clippy" , allow(clippy_lint))]
134
123
```
135
124
136
- ## Updating rustc
137
-
138
- Sometimes, rustc moves forward without Clippy catching up. Therefore updating
139
- rustc may leave Clippy a non-functional state until we fix the resulting
140
- breakage.
141
-
142
- You can use the [ rust-update] ( rust-update ) script to update rustc only if
143
- Clippy would also update correctly.
144
-
145
125
## License
146
126
147
127
Licensed under [ MPL] ( https://www.mozilla.org/MPL/2.0/ ) .
0 commit comments