rust-analyzer/crates
bors[bot] 0bee7cb716
Merge #9453
9453: Add first-class limits. r=matklad,lnicola a=rbartlensky

Partially fixes #9286.

This introduces a new `Limits` structure which is passed as an input
to `SourceDatabase`. This makes limits accessible almost everywhere in
the code, since most places have a database in scope.

One downside of this approach is that whenever you query limits, you
essentially do an `Arc::clone` which is less than ideal.

Let me know if I missed anything, or would like me to take a different approach!

Co-authored-by: Robert Bartlensky <bartlensky.robert@gmail.com>
2021-07-22 10:33:05 +00:00
..
base_db minor: remove dead code 2021-07-20 20:22:56 +03:00
cfg internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
flycheck internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
hir Merge #9637 2021-07-20 16:06:37 +00:00
hir_def Merge #9453 2021-07-22 10:33:05 +00:00
hir_expand Add Limit struct. 2021-07-19 13:26:11 +01:00
hir_ty Merge #9453 2021-07-22 10:33:05 +00:00
ide Fix a couple of clippy nits 2021-07-22 09:03:54 +03:00
ide_assists Merge #9453 2021-07-22 10:33:05 +00:00
ide_completion Merge #9453 2021-07-22 10:33:05 +00:00
ide_db Merge #9453 2021-07-22 10:33:05 +00:00
ide_diagnostics internal: remove one more needless extern crate 2021-07-11 15:48:49 +03:00
ide_ssr minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
limit Add Limit struct. 2021-07-19 13:26:11 +01:00
mbe minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
parser Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
paths Fix AbsPath::ends_with 2021-07-18 10:25:14 +03:00
proc_macro_api internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_srv internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
project_model internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
rust-analyzer Fix a couple of clippy nits 2021-07-22 09:03:54 +03:00
sourcegen minor: make sure that project_root works correctly 2021-07-13 15:02:29 +03:00
stdx Remove proc macro management thread 2021-07-08 16:43:39 +02:00
syntax Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
test_utils Update inline_call assist doc example 2021-07-05 14:24:25 +02:00
text_edit minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
vfs internal: make it easier to isolate IO 2021-07-17 17:55:16 +03:00
vfs-notify internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00