None-delimited identifiers (sometimes) stringified with strange spaces #55658
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
I have the following procedural macro and invocation of the macro. In this code I construct two identical functions
f
andg
which simply returnstringify!(i32)
, but with a none-delimited group around thei32
(because of #55557). As far as I can tell the function bodies off
andg
are identical token streams.But
f
returns"i32"
andg
returns" i32 "
.I believe that as written, both functions should return
"i32"
without spaces.The text was updated successfully, but these errors were encountered: