rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 178 forks source link

Detect old versions of rustfmt. #361

Closed mookid closed 4 years ago

mookid commented 4 years ago

Currently the rust--format-call function calls rustfmt using by default the flags --edition 2018. It fails badly if the version of the binary is old enough, in a very unhelpful way.

rust-mode should output a helpful error message in the echo area in case that happens. See #360.