rust-analyzer/crates
bors db69df3216 Auto merge of #17478 - kilpkonn:master, r=Veykril
Simplify some term search tactics

Working on the paper `@phijor` found that "Data constructor" tactic could be simplified quite a bit by running it only in the backwards direction. With n+1 rounds it has same coverage as previous implementation in n rounds, however the tactic it self is more simple and also potentially faster as there is less to do.

In a nutshell the idea is to only work with types in the wish-list rather than with any types.

Turns out it is quite a bit faster:

Before:
```
ripgrep:
Tail Expr syntactic hits: 238/1692 (14%)
Tail Exprs found: 1223/1692 (72%)
Term search avg time: 15ms

nalgebra:
Tail Expr syntactic hits: 125/3001 (4%)
Tail Exprs found: 2143/3001 (71%)
Term search avg time: 849ms
```

After
````
ripgrep:
Tail Expr syntactic hits: 246/1692 (14%)
Tail Exprs found: 1209/1692 (71%)
Term search avg time: 8ms

nalgebra:
Tail Expr syntactic hits: 125/3001 (4%)
Tail Exprs found: 2028/3001 (67%)
Term search avg time: 305ms
````

_Also removed niche optimization of removing scope defs from the search space as this wasn't helping much anyway and made code a bit more complex._
2024-06-24 07:20:50 +00:00
..
base-db chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
cfg fix: Fix doc comment desugaring for proc-macros 2024-04-27 13:30:51 +02:00
flycheck fix: Fix flycheck panicking when cancelled 2024-06-20 10:21:58 +02:00
hir Auto merge of #17478 - kilpkonn:master, r=Veykril 2024-06-24 07:20:50 +00:00
hir-def Simplify 2024-06-21 18:27:05 +02:00
hir-expand Check that Expr is none before adding fixup 2024-06-20 08:55:05 -04:00
hir-ty Prevent re-allocation in CallableSig::from_params_and_return 2024-06-21 19:26:08 +02:00
ide Auto merge of #17419 - ishanjain28:filter_builtin_macro_expansion, r=Veykril 2024-06-20 08:39:17 +00:00
ide-assists Run data_constructor tactic only backwards 2024-06-21 22:01:06 +03:00
ide-completion Run data_constructor tactic only backwards 2024-06-21 22:01:06 +03:00
ide-db Auto merge of #17439 - Veykril:paralleler-prime-caches, r=Veykril 2024-06-17 15:58:09 +00:00
ide-diagnostics Run data_constructor tactic only backwards 2024-06-21 22:01:06 +03:00
ide-ssr Thread more HasSource::source calls through Semantics for caching 2024-06-10 10:33:07 +02:00
intern Fix new clippy lints 2024-04-01 17:55:56 +02:00
limit Simplify 2024-04-06 13:12:07 +02:00
load-cargo fix: ensure there are no cycles in the source_root_parent_map 2024-06-20 13:46:14 +08:00
mbe Auto merge of #17398 - Veykril:bogus-file, r=Veykril 2024-06-12 07:19:31 +00:00
parser fix: Fix pat fragment parsers choking on <eoi> 2024-06-17 19:42:56 +02:00
paths Apply requested changes round 2 2024-06-05 10:45:22 +02:00
proc-macro-api Register virtual workspace Cargo.toml files in the VFS 2024-06-09 12:54:50 +02:00
proc-macro-srv Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
proc-macro-srv-cli Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
profile Fix typos 2024-05-15 18:55:27 +02:00
project-model feature: add build system info; runnables to rust-project.json 2024-06-11 11:55:17 -04:00
rust-analyzer Increase search depth to account for more granual steps 2024-06-22 15:06:07 +03:00
salsa Auto merge of #17417 - Wilfred:intern_macros_salsa, r=Veykril 2024-06-14 06:20:26 +00:00
sourcegen Fix new clippy lints 2024-04-01 17:55:56 +02:00
span internal: Fix rustdoc warnings 2024-06-13 17:29:10 -07:00
stdx internal: Fix rustdoc warnings 2024-06-13 17:29:10 -07:00
syntax Update lib.rs 2024-06-18 00:52:53 +01:00
test-fixture style: simplify string interpolation 2024-05-30 16:18:49 -07:00
test-utils internal: Fix rustdoc warnings 2024-06-13 17:29:10 -07:00
text-edit Merge commit 'ddf105b646c6749a2de2451c9a499a354eec79c2' into sync-from-ra 2024-02-11 08:40:19 +02:00
toolchain internal: Fix rustdoc warnings 2024-06-13 17:29:10 -07:00
tt Cleanup some inert attribute stuff 2024-06-04 12:38:20 +02:00
vfs internal: Remove FileId::BOGUS 2024-06-12 08:16:07 +02:00
vfs-notify discard when the path is invalid utf8 symbol. 2024-04-30 15:39:05 +08:00