-
Notifications
You must be signed in to change notification settings - Fork 1.7k
rustfmt fail (>Format Document) with async syntax (wrong edition) #2146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We run |
OTOH, I'll accept a PR which papers over this specific issue :) |
I've a local patch that add --edition 2018 to the command would you accept that? |
Just adding |
Typing edition 2018 syntax like:
Makes the formatting to fail with:
In handlers.rs:547, rustfmt is started without an edition provided.
A workaround is to set the edition in rustfmt config file.
But I think rust-analyser should know the current edition, and provide it when running rustfmt
The text was updated successfully, but these errors were encountered: