-
Notifications
You must be signed in to change notification settings - Fork 925
rustfmt_skip should have the same effect on warnings when inside and outside a module #1399
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
You can add a |
Ah! I had put the attribute inside the file (as |
@nrc If |
I agree with @solson on this point -- also, to me, it's just plain surprising for |
Confirmed that this is supported in 0.3.1-nightly. |
I'm using LALRPOP, which generates a Rust file from a build script,
which file I then reference with a
mod <filename>
item.The generated file is large and, relative to the style used by
rustfmt, densely formatted, and has many long lines, at which rustfmt
always emits error messages about being unable to shorten them.
rustfmt does, however, manage to format much of the file — expanding
it from 3010 lines to 8265.
How, if at all, could I instruct rustfmt to ignore this file?
The text was updated successfully, but these errors were encountered: