Skip to content

Commit d477c09

Browse files
Avoid nesting Subtrees when parsing TokenStream
1 parent ef98988 commit d477c09

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)