mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
Fix panic in syntax_highlighting
This commit is contained in:
parent
14872a5332
commit
0914f78f23
2 changed files with 30 additions and 28 deletions
|
|
@ -452,10 +452,10 @@ fn traverse(
|
|||
}
|
||||
hl
|
||||
}
|
||||
NodeOrToken::Token(token) => {
|
||||
NodeOrToken::Token(token) => salsa::attach(sema.db, || {
|
||||
highlight::token(sema, token, edition, &is_unsafe_node, tt_level > 0)
|
||||
.zip(Some(None))
|
||||
}
|
||||
}),
|
||||
};
|
||||
if let Some((mut highlight, binding_hash)) = element {
|
||||
if is_unlinked && highlight.tag == HlTag::UnresolvedReference {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue