Closed BigBigos closed 6 years ago
The nightly feature builds on the compiler's proc_macro
which is currently only available within procedural macros. To use proc-macro2 / quote inside of main
it needs to be without the nightly feature.
It seems I have a dependency issue then. One of the dependencies must enable the nightly
feature in proc-macro2
but another uses quote!()
in main
(more specifically: string_cache_codegen
uses it for its build.rs
).
Will try to track down the dependency and see if anything can be done about it.
Ah yeah as @dtolnay mentioned this is currently expected (unfortunately), so I'm going to close this
I have encountered this problem after I enabled the
nightly
feature ofproc-macro2
. There is no issue when thenightly
feature is disabled.I am testing it with the recent nightly toolchain, but the problem goes back to nightly-2018-04-06 at the very least.
See also: rust-lang/rust#50184
A simple usage of
quote!()
causes:You can reproduce it with:
Cargo.toml
src/main.rs