diff options
author | Paul Daniel Faria <[email protected]> | 2020-06-15 12:41:13 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-08-10 13:44:54 +0100 |
commit | 4a4b1f48efeff4ebe578eb92b7bb8338d0181a83 (patch) | |
tree | 1b124401d7b812d5dc06b8b63a56ca98d6281005 /crates/ra_ide/src/syntax_highlighting.rs | |
parent | fd30134cf84b134259fe8140e513b152e37f3f88 (diff) |
Limit scope of unsafe to & instead of all ref exprs, add test showing missing support for autoref behavior
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index b82b51efd..c5098189b 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -565,7 +565,7 @@ fn highlight_element( | |||
565 | _ => h, | 565 | _ => h, |
566 | } | 566 | } |
567 | } | 567 | } |
568 | REF_EXPR => { | 568 | T![&] => { |
569 | let ref_expr = element.into_node().and_then(ast::RefExpr::cast)?; | 569 | let ref_expr = element.into_node().and_then(ast::RefExpr::cast)?; |
570 | let expr = ref_expr.expr()?; | 570 | let expr = ref_expr.expr()?; |
571 | let field_expr = match expr { | 571 | let field_expr = match expr { |