From 3bf033e54814919f2214ca4e9b73cebc5ba7d86d Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Fri, 7 Aug 2020 09:24:20 -0400 Subject: Add support for unions in inference and lowering --- crates/ra_ide/test_data/highlight_unsafe.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/test_data/highlight_unsafe.html b/crates/ra_ide/test_data/highlight_unsafe.html index 39582b5bb..de70363da 100644 --- a/crates/ra_ide/test_data/highlight_unsafe.html +++ b/crates/ra_ide/test_data/highlight_unsafe.html @@ -50,13 +50,13 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd fn main() { let x = &5 as *const usize; - let u = Union { b: 0 }; + let u = Union { b: 0 }; unsafe { unsafe_fn(); - let b = u.b; + let b = u.b; match u { - Union { b: 0 } => (), - Union { a } => (), + Union { b: 0 } => (), + Union { a } => (), } HasUnsafeFn.unsafe_method(); let y = *(x); -- cgit v1.2.3