rust-analyzer/crates/ide_db/src
bors[bot] 2aa7f2ece5
Merge #6750
6750: Remove documentation query, move doc handling to attributes r=matklad a=Veykril

Fixes #3182

Removes the documentation query in favor of `Attrs::docs`. Attrs already handlded doc comments partially but the alloc saving check was wrong so it only worked when other attributes existed as well. Unfortunately the `new` constructor has to do an intermediate allocation now because we need to keep the order of mixed doc attributes and doc comments.

I've also partially adjusted the `hover` module to have its tests check the changes, it still has some `HasSource` trait usage due to the `ShortLabel` trait usage, as that is only implemented on the Ast parts and not the Hir, should this ideally be implemented for the Hir types as well?(would be a follow up PR of course)

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-12-08 13:23:12 +00:00
..
call_info Extract tests module to file in ide_db crate 2020-12-04 00:05:39 +09:00
helpers Remove the state 2020-12-07 23:41:08 +02:00
line_index Extract tests module to file in ide_db crate 2020-12-04 00:05:39 +09:00
traits Extract tests module to file in ide_db crate 2020-12-04 00:05:39 +09:00
apply_change.rs Remove documentation query 2020-12-07 19:58:17 +01:00
call_info.rs Extract tests module to file in ide_db crate 2020-12-04 00:05:39 +09:00
defs.rs Add slightly more profiling details 2020-12-04 20:26:28 +01:00
helpers.rs Move the helpers into ide_db 2020-11-28 16:30:39 +02:00
imports_locator.rs Tweak the search query params for better lookup speed 2020-12-08 15:05:09 +02:00
label.rs Introduce Label 2020-08-18 16:50:07 +02:00
lib.rs Move the helpers into ide_db 2020-11-28 16:30:39 +02:00
line_index.rs Extract tests module to file in ide_db crate 2020-12-04 00:05:39 +09:00
search.rs Support self in reference search 2020-11-29 20:54:17 +01:00
source_change.rs Rename ra_ide_db -> ide_db 2020-08-13 16:39:16 +02:00
symbol_index.rs Rename ra_ide_db -> ide_db 2020-08-13 16:39:16 +02:00
traits.rs Extract tests module to file in ide_db crate 2020-12-04 00:05:39 +09:00
ty_filter.rs Remove dependency on 'assists' from 'completion' crate 2020-10-24 10:47:23 +03:00