1
Fork 0

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

@ -72,7 +72,7 @@ impl TokenTree {
}
}
// See comments in `interpolated_to_tokenstream` for why we care about
// See comments in `Nonterminal::to_tokenstream` for why we care about
// *probably* equal here rather than actual equality
//
// This is otherwise the same as `eq_unspanned`, only recursing with a
@ -310,7 +310,7 @@ impl TokenStream {
t1.next().is_none() && t2.next().is_none()
}
// See comments in `interpolated_to_tokenstream` for why we care about
// See comments in `Nonterminal::to_tokenstream` for why we care about
// *probably* equal here rather than actual equality
//
// This is otherwise the same as `eq_unspanned`, only recursing with a