Replace into_trees
with trees
in a test.
There's no need for token tree cloning here.
This commit is contained in:
parent
53379a7b65
commit
a9d8459299
@ -63,9 +63,8 @@ fn bad_path_expr_1() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn string_to_tts_macro() {
|
fn string_to_tts_macro() {
|
||||||
create_default_session_globals_then(|| {
|
create_default_session_globals_then(|| {
|
||||||
let tts: Vec<_> =
|
let stream = string_to_stream("macro_rules! zip (($a)=>($a))".to_string());
|
||||||
string_to_stream("macro_rules! zip (($a)=>($a))".to_string()).into_trees().collect();
|
let tts = &stream.trees().collect::<Vec<_>>()[..];
|
||||||
let tts: &[TokenTree] = &tts[..];
|
|
||||||
|
|
||||||
match tts {
|
match tts {
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user