Make interpolated_to_tokenstream a method on Nonterminal.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user