Make interpolated_to_tokenstream
a method on Nonterminal
.
This commit is contained in:
parent
f0d8fbd283
commit
82ad4f1f45
4 changed files with 85 additions and 86 deletions
|
@ -179,7 +179,7 @@ impl FromInternal<(TreeAndJoint, &'_ ParseSess, &'_ mut Vec<Self>)>
|
|||
}
|
||||
|
||||
Interpolated(nt) => {
|
||||
let stream = Token::interpolated_to_tokenstream(sess, nt, span);
|
||||
let stream = nt.to_tokenstream(sess, span);
|
||||
TokenTree::Group(Group {
|
||||
delimiter: Delimiter::None,
|
||||
stream,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue