rust/crates/ra_ide/test_data
bors[bot] 8a57afe5a4
Merge #5684
5684: Semantic highlighting for unsafe union field access r=jonas-schievink a=Nashenas88

This change adds support for unions in inference and lowering, then extends on that to add the unsafe semantic modifier on field access only. The `is_possibly_unsafe` function in `syntax_highlighting.rs` could be extended to support fns and static muts so that their definitions are not highlighted as unsafe, but only their usage.

Also, each commit of this PR updates the tests. By reviewing the files by commit, it's easy to see how the changes in the code affected the tests.

Co-authored-by: Paul Daniel Faria <Nashenas88@users.noreply.github.com>
2020-08-08 16:45:37 +00:00
..
highlight_doctest.html On second thought, we want to preserve the textMate here where all punctuation that are from a Attr be highlited as Attribute 2020-07-20 23:37:31 -03:00
highlight_injection.html Handle semantic highlight when STAR is part of the *{const, mut} 2020-07-20 11:21:40 -03:00
highlight_strings.html Assingment semantic highlight 2020-07-20 12:36:23 -03:00
highlight_unsafe.html Merge #5684 2020-08-08 16:45:37 +00:00
highlighting.html Mark static mutable names as unsafe 2020-08-06 20:07:42 -04:00
rainbow_highlighting.html Replace rand with oorandom 2020-07-29 19:49:10 +02:00