File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -98,22 +98,18 @@ If you want to run Clippy **only** on the given crate, use the `--no-deps` optio
98
98
cargo clippy -p example -- --no-deps
99
99
```
100
100
101
- ### As a rustc replacement ( ` clippy-driver ` )
101
+ ### Using ` clippy-driver `
102
102
103
- Clippy can also be used in projects that do not use cargo. To do so, you will need to replace
104
- your ` rustc ` compilation commands with ` clippy-driver ` . For example, if your project runs:
105
-
106
- ``` terminal
107
- rustc --edition 2018 -Cpanic=abort foo.rs
108
- ```
109
-
110
- Then, to enable Clippy, you will need to call:
103
+ Clippy can also be used in projects that do not use cargo. To do so, run ` clippy-driver `
104
+ with the same arguments you use for ` rustc ` . For example:
111
105
112
106
``` terminal
113
107
clippy-driver --edition 2018 -Cpanic=abort foo.rs
114
108
```
115
109
116
- Note that ` rustc ` will still run, i.e. it will still emit the output files it normally does.
110
+ Note that ` clippy-driver ` is designed for running Clippy only and should not be used as a general
111
+ replacement for ` rustc ` . ` clippy-driver ` may produce artifacts that are not optimized as expected,
112
+ for example.
117
113
118
114
### Travis CI
119
115
You can’t perform that action at this time.
0 commit comments