Wrong span of Path
if ModSep
is inserted by proc macro
#84122
Labels
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
Currently, the
Span::ctxt()
ofDirection::East
in the expansion is equal toSyntaxCtxt::root()
. But this is obviously wrong because::
is inserted by the macro.This would be because the span of
::
is ignored inrust/compiler/rustc_parse/src/parser/path.rs
Lines 149 to 157 in d68f7a2
The text was updated successfully, but these errors were encountered: