-
Notifications
You must be signed in to change notification settings - Fork 873
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
structs with public members get extra pub prefix #95
Comments
I think the root cause is a bug in rustc. It looks like the span for After I applied this patch to
@nrc: Can you confirm this is a rustc bug and not intentional behavior? It seems like a bug to me, but I'm new to compiler internals. I can open a pull request to get this change applied. |
@chellmuth nice find! Yeah, rustc looks wrong here. Please could you open a PR against Rust? |
Issue: rust-lang/rust#26083 |
This is fixed on the latest nightly, #100 adds a regression test |
Fixed by #100 |
rustfmt adds an extra
pub
modifier to public fields in structs, causing the code to no longer compile.The text was updated successfully, but these errors were encountered: