Skip to content

Commit 42be522

Browse files
Merge #6783
6783: Avoid nesting Subtrees when parsing TokenStream r=jonas-schievink a=jonas-schievink Fixes #6744 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
2 parents ef98988 + d477c09 commit 42be522

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/proc_macro_srv/src/rustc_server.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ pub mod token_stream {
184184
let (subtree, _token_map) =
185185
mbe::parse_to_token_tree(src).ok_or("Failed to parse from mbe")?;
186186

187-
let tt: tt::TokenTree = subtree.into();
188-
Ok(tt.into())
187+
Ok(TokenStream { subtree })
189188
}
190189
}
191190

0 commit comments

Comments
 (0)