Make interpolated_to_tokenstream a method on Nonterminal.

This commit is contained in:
Nicholas Nethercote 2019-02-18 10:06:26 +11:00
parent f0d8fbd283
commit 82ad4f1f45
4 changed files with 85 additions and 86 deletions

View file

@ -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,