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
On rustfmt 1.6.0, I get surprising indentation when destructuring a struct where some fields are cfg-specific.
struct Demo { field_name_foo: (), field_name_bar: (), #[cfg(feature = "diagnostics")] field_name_baz: (), field_name_tux: (), } fn main() { let Demo { field_name_foo, #[cfg(feature = "diagnostics")] field_name_baz: _, field_name_bar, field_name_tux, } = Demo { field_name_foo: (), field_name_bar: (), #[cfg(feature = "diagnostics")] field_name_baz: (), field_name_tux: (), }; }
The text was updated successfully, but these errors were encountered:
Thanks for reaching out. I also tested this with rustfmt 1.5.3-nightly (f4b80cac 2023-06-30) and reproduced the issue.
rustfmt 1.5.3-nightly (f4b80cac 2023-06-30)
Sorry, something went wrong.
No branches or pull requests
On rustfmt 1.6.0, I get surprising indentation when destructuring a struct where some fields are cfg-specific.
The text was updated successfully, but these errors were encountered: