-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensions
Description
I get errors when I call to_tokens
on a parsed block and parse that again using procedural macros. It seems to be related to hygiene being lost when you do that, but I might be wrong, here's a gist that shows the problem: https://gist.github.com/uorbe001/1118f22c378d2e382d29
If I try to compile that gist, I get the following error on the assert! line:
<quote expansion>:4:50: 4:53 error: unresolved name `one`.
<quote expansion>:4 name_66,ctxt_2!(1i == one);
I thought this was related to #8063, but apparently this is a separate issue.
Metadata
Metadata
Assignees
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensions
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
uorbe001 commentedon Sep 10, 2014
I forgot to mention, this seems to have been introduced with #16477
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Interpolate AST nodes in quasiquote.
Auto merge of #23085 - goffrie:interpolating-quote, r=huonw