From 9634521abdde2ee609e3fa434e942149832a72fa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 9 Nov 2020 18:06:54 +0100 Subject: . is an operator closes #6498 --- .../src/syntax_highlighting/test_data/highlight_unsafe.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html') diff --git a/crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html b/crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html index 552fea668..4b6d6adc9 100644 --- a/crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_unsafe.html @@ -73,27 +73,27 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd unsafe { // unsafe fn and method calls unsafe_fn(); - let b = u.b; + let b = u.b; match u { Union { b: 0 } => (), Union { a } => (), } - HasUnsafeFn.unsafe_method(); + HasUnsafeFn.unsafe_method(); // unsafe deref let y = *x; // unsafe access to a static mut - let a = global_mut.a; + let a = global_mut.a; // unsafe ref of packed fields let packed = Packed { a: 0 }; - let a = &packed.a; - let ref a = packed.a; + let a = &packed.a; + let ref a = packed.a; let Packed { ref a } = packed; let Packed { a: ref _a } = packed; // unsafe auto ref of packed field - packed.a.calls_autoref(); + packed.a.calls_autoref(); } } \ No newline at end of file -- cgit v1.2.3