Rustfmt, cargo-fmt


#1

Hi,

after running rustup update rustfmt and cargo-fmt are no longer available neither on stable nor on nightly. Is there a way to downgrade somehow to get those tools back?
error: toolchain ‘nightly-x86_64-unknown-linux-gnu’ does not have the binary rustfmt


#2

Yes, having same issue.

https://github.com/rust-lang-nursery/rls/issues/535#issuecomment-349114716


#3

Installed nightly according following instructions:
https://doc.rust-lang.org/1.5.0/book/nightly-rust.html

Now it works


#4

In case someone is interested in knowing why rustfmt (and other tools) fail, here is the link describing the issue: https://www.ncameron.org/blog/rustfmt-changes/

Thanks to scottmcm3 (in #rust-beginners irc) for pointing it out.