diff options
author | Paul Daniel Faria <[email protected]> | 2020-08-07 14:24:20 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-08-08 16:29:56 +0100 |
commit | 3bf033e54814919f2214ca4e9b73cebc5ba7d86d (patch) | |
tree | f188f33d437718ca86247805ef58a235c648be45 /crates/ra_hir_ty/src/tests | |
parent | a39d503ef3ba26ec324639e22e46e1a8173b397e (diff) |
Add support for unions in inference and lowering
Diffstat (limited to 'crates/ra_hir_ty/src/tests')
-rw-r--r-- | crates/ra_hir_ty/src/tests/simple.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_ty/src/tests/simple.rs b/crates/ra_hir_ty/src/tests/simple.rs index a2db6944d..5a7cf9455 100644 --- a/crates/ra_hir_ty/src/tests/simple.rs +++ b/crates/ra_hir_ty/src/tests/simple.rs | |||
@@ -350,7 +350,7 @@ fn infer_union() { | |||
350 | 57..172 '{ ...); } }': () | 350 | 57..172 '{ ...); } }': () |
351 | 67..68 'u': MyUnion | 351 | 67..68 'u': MyUnion |
352 | 71..89 'MyUnio...o: 0 }': MyUnion | 352 | 71..89 'MyUnio...o: 0 }': MyUnion |
353 | 86..87 '0': i32 | 353 | 86..87 '0': u32 |
354 | 95..113 'unsafe...(u); }': () | 354 | 95..113 'unsafe...(u); }': () |
355 | 102..113 '{ baz(u); }': () | 355 | 102..113 '{ baz(u); }': () |
356 | 104..107 'baz': fn baz(MyUnion) | 356 | 104..107 'baz': fn baz(MyUnion) |
@@ -358,7 +358,7 @@ fn infer_union() { | |||
358 | 108..109 'u': MyUnion | 358 | 108..109 'u': MyUnion |
359 | 122..123 'u': MyUnion | 359 | 122..123 'u': MyUnion |
360 | 126..146 'MyUnio... 0.0 }': MyUnion | 360 | 126..146 'MyUnio... 0.0 }': MyUnion |
361 | 141..144 '0.0': f64 | 361 | 141..144 '0.0': f32 |
362 | 152..170 'unsafe...(u); }': () | 362 | 152..170 'unsafe...(u); }': () |
363 | 159..170 '{ baz(u); }': () | 363 | 159..170 '{ baz(u); }': () |
364 | 161..164 'baz': fn baz(MyUnion) | 364 | 161..164 'baz': fn baz(MyUnion) |