rust/crates
bors[bot] 4a58522119
Merge #2562
2562: Fix NavigationTarget ranges r=matklad a=edwin0cheng

Fix the issue described in https://github.com/rust-analyzer/rust-analyzer/pull/2544#issuecomment-565572553

This PR change the order for finding `full_range` of `focus_range` in following orders:
1. map both ranges to macro_call
2. map focus range to a token inside macro call, and full range to the whole of macro call
3. map both ranges to the whole of macro call

And fix the corresponding tests and make these tests easily to follow.

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2019-12-17 13:37:32 +00:00
..
ra_arena Switch to variant-granularity field type inference 2019-11-25 00:12:36 +03:00
ra_assists Use different types for path with and without generics 2019-12-14 19:15:40 +01:00
ra_batch Support setting cargo features 2019-12-13 18:16:34 +08:00
ra_cfg Disable doctests 2019-11-17 18:35:05 +03:00
ra_cli Remove ty from code_model 2019-12-08 12:44:14 +01:00
ra_db Run rustfmt with respect to Cargo.toml edition 2019-12-04 23:05:01 +01:00
ra_fmt fix 2190; add test for "replace if let with match" 2019-11-20 19:01:06 +01:00
ra_hir Merge #2562 2019-12-17 13:37:32 +00:00
ra_hir_def Use different types for path with and without generics 2019-12-14 19:15:40 +01:00
ra_hir_expand Merge #2562 2019-12-17 13:37:32 +00:00
ra_hir_ty Add test mark 2019-12-15 21:06:08 +01:00
ra_ide Merge #2562 2019-12-17 13:37:32 +00:00
ra_lsp_server remove unnecessary turbofish. 2019-12-15 18:15:24 +02:00
ra_mbe Re-export Origin to replace ExpansionOrigin 2019-12-15 01:46:39 +08:00
ra_parser Improve recovery for incomplete lambdas 2019-12-17 12:11:01 +01:00
ra_prof Disable doctests 2019-11-17 18:35:05 +03:00
ra_project_model Use all-features by default 2019-12-14 17:05:12 +01:00
ra_syntax Improve recovery for incomplete lambdas 2019-12-17 12:11:01 +01:00
ra_text_edit Disable doctests 2019-11-17 18:35:05 +03:00
ra_tt Refactor tt::Delimiter 2019-12-13 21:53:34 +08:00
ra_vfs_glob Disable doctests 2019-11-17 18:35:05 +03:00
test_utils Skip slow tests by default 2019-12-07 13:19:42 +01:00