diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-04 23:35:13 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-04 23:35:13 +0100 |
commit | 4be4d29853633a0e51b9707edc58c556a99a7249 (patch) | |
tree | afb5fd141bf9525f029cacb99a9fbb7225921daf /crates/stdx/src/lib.rs | |
parent | d3dfa18071cdccd2757db7eeff2ffec21b25ffd4 (diff) | |
parent | d3b804d11d554e6d4e4ccbad92add86e093b4bdb (diff) |
Merge #8332
8332: Error when `rustfmt` component is unavailable r=jonas-schievink a=jonas-schievink
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8331
When the toolchain has no installable rustfmt component, running `rustfmt` complains with
```
error: the 'rustfmt' component which provides the command 'rustfmt' is not available for the 'nightly-2021-04-04-x86_64-unknown-linux-gnu' toolchain
```
Check for occurrence of "not available" in addition to the existing "not installed" to detect this case and report a user-visible error.
rustfmt and/or rustup should *really* be changed to not use the same exit status here
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/stdx/src/lib.rs')
0 files changed, 0 insertions, 0 deletions