diff options
author | Paul Daniel Faria <[email protected]> | 2020-05-24 06:33:22 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-06-27 15:09:29 +0100 |
commit | daf1cac9f87023d37a4418ea24ed615c9706258b (patch) | |
tree | d03541e3288316c2570bbc86a1b2bd97eea9292c /crates/ra_ide/src/syntax_highlighting | |
parent | 0b95bed83fc8db897f54b350168567f14527e8de (diff) |
Move diagnostics back into expr, add tests for diagnostics, fix logic to account for derefs of raw ptrs
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index 39cd74ac3..43f554a29 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -384,9 +384,11 @@ impl HasUnsafeFn { | |||
384 | } | 384 | } |
385 | 385 | ||
386 | fn main() { | 386 | fn main() { |
387 | let x = &5 as *usize; | ||
387 | unsafe { | 388 | unsafe { |
388 | unsafe_fn(); | 389 | unsafe_fn(); |
389 | HasUnsafeFn.unsafe_method(); | 390 | HasUnsafeFn.unsafe_method(); |
391 | let y = *x; | ||
390 | } | 392 | } |
391 | } | 393 | } |
392 | "# | 394 | "# |