rust/crates/rust-analyzer/src
bors[bot] 5138baf2ac
Merge #8021 #8022
8021: Enable searching for builtin types r=matklad a=Veykril

Not too sure how useful this is for reference search overall, but for completeness sake it should be there 
![image](https://user-images.githubusercontent.com/3757771/111132711-f69db600-8579-11eb-8c90-22fd6862d11f.png)

Also enables document highlighting for them.


8022: some clippy::performance fixes r=matklad a=matthiaskrgr

use vec![] instead of Vec::new() + push()
avoid redundant clones
use chars instead of &str for single char patterns in ends_with() and starts_with()
allocate some Vecs with capacity to avoid unnecessary resizing

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Matthias Krüger <matthias.krueger@famsik.de>
2021-03-15 10:05:49 +00:00
..
bin Add no-sysroot flag for analysis-stats 2021-03-14 18:31:14 +08:00
cli Add no-sysroot flag for analysis-stats 2021-03-14 18:31:14 +08:00
diagnostics Bump cargo_metadata 2021-03-02 14:27:29 +02:00
caps.rs Start LSP 3.17 support 2021-02-14 14:51:29 -05:00
cargo_target_spec.rs More maintainable config 2021-01-06 15:39:28 +03:00
cli.rs Split pub fn cargo_load into pub fn load_workspace_at and pub fn load_workspace 2021-02-16 16:37:52 +01:00
config.rs Avoid double text edits when renaming mod declaration 2021-03-10 15:49:01 +01:00
diagnostics.rs Avoid transmitting unchanged diagnostics 2021-02-17 12:45:17 +01:00
diff.rs Split textDocument/formatting TextEdit with diff 2020-12-31 15:33:20 +01:00
dispatch.rs Respond with JSON-RPC error if we failed to deserialize request 2020-10-30 19:57:52 +01:00
document.rs Latest LSP 3.16 protocol 2020-11-16 15:10:13 -05:00
from_proto.rs Fix bitrotted module name 2021-02-16 19:17:32 +03:00
global_state.rs Fix bitrotted module name 2021-02-16 19:17:32 +03:00
handlers.rs Merge #8021 #8022 2021-03-15 10:05:49 +00:00
lib.rs Fix bitrotted module name 2021-02-16 19:17:32 +03:00
line_index.rs Fix bitrotted module name 2021-02-16 19:17:32 +03:00
lsp_ext.rs Apply review suggestions 2021-03-11 17:39:41 +03:00
lsp_utils.rs some clippy::performance fixes 2021-03-15 10:19:59 +01:00
main_loop.rs Merge #7799 2021-03-13 13:50:35 +00:00
markdown.rs Fixed typos in tests 2021-01-09 15:41:29 +01:00
op_queue.rs Async Loading outdir and proc-macro 2021-01-29 01:04:14 +08:00
reload.rs Revert "Support disabling rustc build scripts" 2021-03-08 16:37:52 +00:00
request_metrics.rs Flatten module hierarchy 2020-06-24 18:57:30 +02:00
semantic_tokens.rs Add a semantic token type for char literals 2021-02-05 23:46:39 +00:00
thread_pool.rs Improve prime_caches and display its progress 2020-10-12 13:35:01 +02:00
to_proto.rs Move code to the appropriate layer 2021-03-15 12:55:27 +03:00