We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I save my code in VSCode it auto-formats the code on save. This always works correctly. But with the following code it removed the comment:
pub trait MyTrait where Self: Sized, // some comment { }
Once this is saved it will have saved:
pub trait MyTrait where Self: Sized, { }
This seems to always happen when there is a where part to the trait.
where
I don't expect my comment to be deleted, even if it is not a valid/recommended place to put a comment.
The text was updated successfully, but these errors were encountered:
This is a rustfmt issue. Can you please open an issue at https://github.com/rust-lang/rustfmt instead?
Sorry, something went wrong.
Yes, will do
Found already existing issue there, so did not create a new one. rust-lang/rustfmt#4649
No branches or pull requests
When I save my code in VSCode it auto-formats the code on save.
This always works correctly. But with the following code it removed the comment:
Once this is saved it will have saved:
This seems to always happen when there is a
where
part to the trait.I don't expect my comment to be deleted, even if it is not a valid/recommended place to put a comment.
The text was updated successfully, but these errors were encountered: