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
{{ message }}
Repository navigation
Lifetimes in procedural macros aren't being parsed correctly #50942
Oh crap, fn glue doesn't add ' to the identifier string.
My test with lifetimes in #50473 passed accidentally because all the lifetimes lost their 's so their names were still equal and resolution succeeded.
Activity
petrochenkov commentedon May 21, 2018
Note the missing
'in "undeclared lifetime namestatic", that's why it's undeclared.petrochenkov commentedon May 21, 2018
Oh crap,
fn gluedoesn't add'to the identifier string.My test with lifetimes in #50473 passed accidentally because all the lifetimes lost their
's so their names were still equal and resolution succeeded.petrochenkov commentedon May 21, 2018
Sorry.
alexcrichton commentedon May 21, 2018
Aha that'd do it! You found it much faster than I did :)
And no worries! Would you like to send a PR? Or shall I?
petrochenkov commentedon May 21, 2018
It'll happen sooner if you do it.
alexcrichton commentedon May 21, 2018
Ok! I'll take care of this
rustc: Fix procedural macros generating lifetime tokens
alexcrichton commentedon May 21, 2018
I've posted a fix for this at #50946
Rollup merge of rust-lang#50946 - alexcrichton:fix-parse-lifetime, r=…