mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Refactor tt::Delimiter
This commit is contained in:
parent
16cf6bcf4b
commit
98f98cbb54
8 changed files with 42 additions and 44 deletions
|
@ -1463,7 +1463,7 @@ pub(crate) fn assert_expansion(
|
|||
let wrapped = ast::SourceFile::parse(&wrapped);
|
||||
let wrapped = wrapped.tree().syntax().descendants().find_map(ast::TokenTree::cast).unwrap();
|
||||
let mut wrapped = ast_to_token_tree(&wrapped).unwrap().0;
|
||||
wrapped.delimiter = tt::Delimiter::None;
|
||||
wrapped.delimiter = None;
|
||||
wrapped
|
||||
};
|
||||
let (expanded_tree, expected_tree) = match kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue