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
9898cargo clippy -p example -- --no-deps
9999```
100100
101- ### As a rustc replacement ( ` clippy-driver ` )
101+ ### Using ` clippy-driver `
102102
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:
111105
112106``` terminal
113107clippy-driver --edition 2018 -Cpanic=abort foo.rs
114108```
115109
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.
117113
118114### Travis CI
119115
You can’t perform that action at this time.
0 commit comments