You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If both features tool_attributes and rust_2018_preview are enabled, scoped attributes lead to the error message
error[E0658]: paths of length greater than one in macro invocations are currently unstable (see issue #38356)
--> src/main.rs:4:3
|
4 | #[rustfmt::skip]
| ^^^^^^^^^^^^^
|
= help: add #![feature(proc_macro_path_invoc)] to the crate attributes to enable
I think this can be fixed by doing this #47773 (review) right. I would like to try and fix this, but I need some pointers where to start.
This needs to be fixed, so clippy can use the new scoped attributes instead of the old cfg_attrs (rust-lang/rust-clippy#2823).
I tried this code:
#![feature(tool_attributes)]#![feature(rust_2018_preview)]#[rustfmt::skip]fnmain(){//code not to format}
Playground
This should compile without errors, but gives the error above