-
Notifications
You must be signed in to change notification settings - Fork 907
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
#[rustfmt::skip] requires proc_macro_path_invoc on nightly #2815
Comments
MWE, the following code works unless I uncomment the 2018 preview feature (playground): // #![feature(rust_2018_preview)] // Uncomment for ERRORs
#![feature(tool_attributes)]
#![allow(dead_code)]
#[rustfmt::skip]
fn foo(){}
fn main() {} |
cc @nrc |
Workaround: replace |
I think this is an issue due to libsyntax, not rustfmt, as the MWE above does not even compile when the first line is uncommented. |
This is a bug in rustc, I'll follow-up tomorrow |
Let me know if I should open a bug in rustc or you want to take it from here. |
Reported in rust-lang/rust#51940 |
Should be fixed in rustc now. |
My crate uses
rust_2018_preview
(don't know how relevant this is).Using
tool_attributes
I get an error:And if I enable
proc_macro_path_invoc
I get:The text was updated successfully, but these errors were encountered: