We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
into_trees
trees
1 parent 53379a7 commit a9d8459Copy full SHA for a9d8459
compiler/rustc_expand/src/parse/tests.rs
@@ -63,9 +63,8 @@ fn bad_path_expr_1() {
63
#[test]
64
fn string_to_tts_macro() {
65
create_default_session_globals_then(|| {
66
- let tts: Vec<_> =
67
- string_to_stream("macro_rules! zip (($a)=>($a))".to_string()).into_trees().collect();
68
- let tts: &[TokenTree] = &tts[..];
+ let stream = string_to_stream("macro_rules! zip (($a)=>($a))".to_string());
+ let tts = &stream.trees().collect::<Vec<_>>()[..];
69
70
match tts {
71
[
0 commit comments