rust-analyzer/crates
bors[bot] 04d2b7b256
Merge #5565
5565: SSR: Don't mix non-path-based rules with path-based r=matklad a=davidlattimore

If any rules contain paths, then we reject any rules that don't contain paths. Allowing a mix leads to strange semantics, since the path-based rules only match things where the path refers to semantically the same thing, whereas the non-path-based rules could match anything. Specifically, if we have a rule like `foo ==>> bar` we only want to match the `foo` that is in the current scope, not any `foo`. However "foo" can be parsed as a pattern (BIND_PAT -> NAME -> IDENT). Allowing such a rule through would result in renaming everything called `foo` to `bar`. It'd also be slow, since without a path, we'd have to use the slow-scan search mechanism.

Co-authored-by: David Lattimore <dml@google.com>
2020-07-29 08:55:34 +00:00
..
expect Add a license field to all the crates 2020-07-14 10:57:26 +09:00
flycheck Typo 2020-07-21 10:50:24 +02:00
paths Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_arena Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_assists assists: change_return_type_to_result: clarify assist description 2020-07-22 22:44:31 +02:00
ra_cfg Cleanup CFG API 2020-07-23 16:53:12 +02:00
ra_db More Rustic API for Env 2020-07-21 17:17:21 +02:00
ra_fmt Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_hir Add a builder for DiagnosticSink 2020-07-24 16:30:12 +02:00
ra_hir_def Cleanup CFG API 2020-07-23 16:53:12 +02:00
ra_hir_expand Allow filtering diagnostics 2020-07-24 17:38:18 +02:00
ra_hir_ty Merge #5524 2020-07-24 20:18:01 +00:00
ra_ide Allow running more tests at once 2020-07-29 01:03:19 +03:00
ra_ide_db SSR: Use Definition::find_usages to speed up matching. 2020-07-24 21:34:00 +10:00
ra_mbe Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_parser Fix nameref parsing 2020-07-28 20:59:48 +02:00
ra_proc_macro Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_proc_macro_srv Merge #4676 2020-07-16 14:29:57 +00:00
ra_prof Add rustc-perf to metrics 2020-07-25 10:35:45 +02:00
ra_project_model Require quotes around key-value cfg flags in rust-project.json 2020-07-23 19:03:17 +02:00
ra_ssr SSR: Don't mix non-path-based rules with path-based 2020-07-29 16:01:00 +10:00
ra_syntax Fix nameref parsing 2020-07-28 20:59:48 +02:00
ra_text_edit Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_toolchain Add a license field to all the crates 2020-07-14 10:57:26 +09:00
ra_tt Add a license field to all the crates 2020-07-14 10:57:26 +09:00
rust-analyzer Bump test timeout for macs 2020-07-28 10:31:08 +02:00
stdx Replace superslice with API on path to stabilization 2020-07-23 12:59:18 +02:00
test_utils Allow multiline annotations 2020-07-14 14:58:10 +02:00
vfs Add one more test 2020-07-26 11:05:28 +02:00
vfs-notify Simplify exclusion logic 2020-07-18 16:40:10 +02:00