Maybe incorrect usage of proc-macro-crate
in some proc macros
#5013
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
There are bunch of codes in the codebase use the @bkchr 's
proc-macro-crate
to generate crate access like this:However, the
Itself
branch seems incorrect. We cannot directly referdef_crate
indef_crate
itself, see also rust-lang/rust#54363.I think the correct usage is
Ok(FoundCrate::Itself) => Ident::new("crate", Span::call_site())
.The text was updated successfully, but these errors were encountered: