mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 23:24:29 +00:00
Avoid nesting Subtrees when parsing TokenStream
This commit is contained in:
parent
ef989880ff
commit
d477c09c8a
1 changed files with 1 additions and 2 deletions
|
@ -184,8 +184,7 @@ pub mod token_stream {
|
|||
let (subtree, _token_map) =
|
||||
mbe::parse_to_token_tree(src).ok_or("Failed to parse from mbe")?;
|
||||
|
||||
let tt: tt::TokenTree = subtree.into();
|
||||
Ok(tt.into())
|
||||
Ok(TokenStream { subtree })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue