GaloisInc / mir-json

Plugin for rustc to dump MIR in JSON format
Apache License 2.0
9 stars 2 forks source link

README.md: Add --force to rustup install documentation #14

Closed tarcieri closed 4 years ago

tarcieri commented 4 years ago

On recent versions of rustup, it attempts to auto-install clippy, which isn't available for that particular nightly:

$ rustup toolchain install nightly-2019-08-05                                                                                                                                                                                                         
info: syncing channel updates for 'nightly-2019-08-05-x86_64-apple-darwin'
info: latest update on 2019-08-05, rust version 1.38.0-nightly (d3f8a0b5d 2019-08-04)
error: component 'clippy' for target 'x86_64-apple-darwin' is unavailable for download for channel nightly-2019-08-05

Adding --force causes it to skip clippy:

$ rustup toolchain install nightly-2019-08-05 --force
info: syncing channel updates for 'nightly-2019-08-05-x86_64-apple-darwin'
info: latest update on 2019-08-05, rust version 1.38.0-nightly (d3f8a0b5d 2019-08-04)
warning: Force-skipping unavailable component 'clippy-x86_64-apple-darwin'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
[...]