rust/crates
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
..
expect
flycheck flycheck: Added checkOnSave.noDefaultFeatures 2020-07-30 16:04:01 +02:00
paths
ra_arena
ra_assists align names in make 2020-08-05 19:37:26 +02:00
ra_cfg Cleanup CFG API 2020-07-23 16:53:12 +02:00
ra_db Use salsa's purge to account for all memory 2020-08-05 15:28:20 +02:00
ra_fmt
ra_hir Use salsa's purge to account for all memory 2020-08-05 15:28:20 +02:00
ra_hir_def Update grammar 2020-08-01 13:47:19 +02:00
ra_hir_expand Merge #5628 2020-08-03 11:47:56 +00:00
ra_hir_ty Merge #5684 2020-08-08 16:45:37 +00:00
ra_ide Merge #5684 2020-08-08 16:45:37 +00:00
ra_ide_db Merge #5664 2020-08-05 16:56:39 +00:00
ra_mbe Rename BindPat -> IdentPat 2020-07-31 20:12:10 +02:00
ra_parser Update grammar 2020-08-01 13:47:19 +02:00
ra_proc_macro
ra_proc_macro_srv cargo_metadata 0.11.1 and cargo update 2020-07-29 17:06:56 -04:00
ra_prof Print errors when failing to create a perf counter 2020-07-30 14:34:11 +02:00
ra_project_model Merge #5596 2020-07-30 21:23:41 +00:00
ra_ssr Use SyntaxNode.ancestors instead of a loop 2020-08-06 07:36:03 +10:00
ra_syntax align names in make 2020-08-05 19:37:26 +02:00
ra_text_edit
ra_toolchain
ra_tt
rust-analyzer Remove clone 2020-08-08 17:42:50 +03:00
stdx Use split_once polyfill 2020-07-30 22:23:12 +02:00
test_utils Use split_once polyfill 2020-07-30 22:23:12 +02:00
vfs Add one more test 2020-07-26 11:05:28 +02:00
vfs-notify