rust-analyzer/crates/hir/src
bors[bot] 726b4dd8bd
Merge #10704
10704: internal: Short-circuit `descend_into_macros_single` r=Veykril a=Veykril

There is no need to descend everything if all we are interested in is the first mapping.
This bring `descend_into_macros` timing in highlighting in `rust-analyzer/src/config.rs` from `154ms - descend_into_macros (2190 calls)` to `24ms - descend_into_macros (2190 calls)` since we use the single variant there(will regress once we want to highlight multiple namespaces again though).
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-11-05 15:06:37 +00:00
..
semantics Enable auto-import and qualify-path in derive attributes 2021-10-28 18:40:38 +02:00
attrs.rs resolve_doc_path is able to resolve to macros 2021-08-02 14:33:09 +02:00
db.rs Add more docs 2021-05-22 16:53:47 +03:00
diagnostics.rs Add reference here diagnostic 2021-08-08 10:12:40 +02:00
display.rs Avoid cycle when lowering predicates for associated item lookup 2021-10-04 17:39:55 +02:00
from_id.rs Stop reexporting hir_def's ItemInNs from HIR 2021-07-28 17:39:04 +02:00
has_source.rs minor: fix some clippy lints 2021-09-03 16:00:50 +02:00
lib.rs Replace more Name::to_string usages with Name::to_smol_str 2021-11-04 18:12:05 +01:00
semantics.rs Short-circuit descend_into_macros_single 2021-11-05 16:03:45 +01:00
source_analyzer.rs Resolve derive attributes even when shadowed 2021-10-19 13:42:36 +02:00