rust-analyzer/crates/ide_db/src
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
..
call_info simplify 2021-05-28 20:46:09 +02:00
helpers Merge #9453 2021-07-22 10:33:05 +00:00
line_index Make utf8 default, implement utf16 in terms of it 2021-02-16 19:17:32 +03:00
traits simplify 2021-05-28 20:46:09 +02:00
apply_change.rs Simplify eager macro representation 2021-05-19 20:19:08 +02:00
assists.rs Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
call_info.rs Move out fn_param tests 2021-07-21 21:39:40 +02:00
defs.rs Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
helpers.rs add 'for' postfix completion 2021-07-11 17:10:57 +04:30
items_locator.rs Add Limit struct. 2021-07-19 13:26:11 +01:00
label.rs Cleanup ide_db imports 2021-03-27 21:51:00 +01:00
lib.rs Feat: inline generics in const and func trait completions 2021-06-17 19:54:28 -04:00
line_index.rs internal: use API stabilized in 1.52 2021-05-06 20:12:15 +03:00
path_transform.rs Feat: inline generics in const and func trait completions 2021-06-17 19:54:28 -04:00
rename.rs internal: more natural order of sources for TypeParam 2021-06-14 22:42:43 +03:00
search.rs Explicitly check for reference locals or fields in Name classification 2021-07-11 15:04:40 +02:00
source_change.rs Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
symbol_index.rs Add more profiling for flyimports 2021-06-10 23:43:46 +03:00
traits.rs Cleanup ide_db imports 2021-03-27 21:51:00 +01:00
ty_filter.rs Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00