mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
Merge #6783
6783: Avoid nesting Subtrees when parsing TokenStream r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/6744 bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
commit
42be522c80
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