mirror of https://github.com/rust-lang/rust.git
Add +nightly to command for running cargo build.
This commit is contained in:
parent
1d523ce8f7
commit
203038cbe5
|
@ -47,7 +47,7 @@ And, in your `main.rs` or `lib.rs`, add these lines:
|
|||
#![cfg_attr(feature="clippy", plugin(clippy))]
|
||||
```
|
||||
|
||||
Then build by enabling the feature: `cargo build --features "clippy"`
|
||||
Then build by enabling the feature: `cargo +nightly build --features "clippy"`.
|
||||
|
||||
Instead of adding the `cfg_attr` attributes you can also run clippy on demand:
|
||||
`cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy`
|
||||
|
|
Loading…
Reference in New Issue