-
Notifications
You must be signed in to change notification settings - Fork 889
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
Format whitespace within attributes #984
Comments
@nrc: do you know if there's enough info in the AST to do this? |
I don't know, but in any case I plan to change the representation of attributes pretty soon as part of the macro reform work. |
Okay, probably shouldn't touch this yet then. |
Just came across this, and would love to see this implemented. Especially when looking at code generated with I assume the final syntax is defined by rust-lang/style-team#82, but the only outstanding issue seems to be minor (spaces around |
This is now done |
Closes rust-lang#984, closes rust-lang#1261, closes rust-lang#1462
I'm not sure if there's a decision on this in the wider Rust community, but I think it'd make sense to format attributes so that attributes are formatted to either
#[cfg(feature="nightly")]
or
#[cfg(feature = "nightly")]
The text was updated successfully, but these errors were encountered: