mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Upgrade rowan
Notably, new rowan comes with support for mutable syntax trees.
This commit is contained in:
parent
62ec04bbd5
commit
f5a81ec468
41 changed files with 376 additions and 176 deletions
|
@ -25,7 +25,7 @@ pub(crate) fn matching_brace(file: &SourceFile, offset: TextSize) -> Option<Text
|
|||
Some((node, idx))
|
||||
})
|
||||
.next()?;
|
||||
let parent = brace_token.parent();
|
||||
let parent = brace_token.parent()?;
|
||||
if brace_token.kind() == T![|] && !ast::ParamList::can_cast(parent.kind()) {
|
||||
cov_mark::hit!(pipes_not_braces);
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue