lang/rust: mention "2015 edition" rustfmt error fix
This commit is contained in:
parent
0769b47cc8
commit
4cc8884a2f
1 changed files with 9 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
- [[#enable-rls-by-default][Enable RLS by default]]
|
||||
- [[#enabling-elgot-support-for-rust][Enabling elgot support for Rust]]
|
||||
- [[#troubleshooting][Troubleshooting]]
|
||||
- [[#errore0670-async-fn-is-not-permitted-in-the-2015-edition][error[E0670]: `async fn` is not permitted in the 2015 edition]]
|
||||
|
||||
* Description
|
||||
This module adds support for the Rust language and integration for its tools,
|
||||
|
@ -100,4 +101,11 @@ selected by default. Modify ~rustic-lsp-server~ to change the default:
|
|||
Doom's =:tools lsp= module has an =+eglot= flag. Enable it and this module will
|
||||
use eglot instead.
|
||||
|
||||
* TODO Troubleshooting
|
||||
* Troubleshooting
|
||||
** error[E0670]: `async fn` is not permitted in the 2015 edition
|
||||
You may be seeing this error, despite having ~edition = "2018"~ in your
|
||||
=Cargo.toml=. This error actually originates from ~rustfmt~, which the LSP
|
||||
server tries to invoke on save (if you have ~rustic-format-on-save~ or =:editor
|
||||
format= enabled).
|
||||
|
||||
To fix this your project needs a =rustfmt.toml= with ~edition = "2018"~ in it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue