aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 4527885e9..c62bb3f1a 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -662,9 +662,9 @@ fn highlight_element(
662 } 662 }
663 T![ref] => element 663 T![ref] => element
664 .parent() 664 .parent()
665 .and_then(ast::BindPat::cast) 665 .and_then(ast::IdentPat::cast)
666 .and_then(|bind_pat| { 666 .and_then(|ident_pat| {
667 if sema.is_unsafe_bind_pat(&bind_pat) { 667 if sema.is_unsafe_ident_pat(&ident_pat) {
668 Some(HighlightModifier::Unsafe) 668 Some(HighlightModifier::Unsafe)
669 } else { 669 } else {
670 None 670 None