rust-analyzer/crates/hir_expand/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
..
ast_id_map.rs add more counts 2021-01-27 12:16:24 +03:00
builtin_attr_macro.rs internal: consistent module naming 2021-10-10 15:44:03 +03:00
builtin_derive_macro.rs minor: add a test for derive macros in core 2021-10-10 16:13:45 +03:00
builtin_fn_macro.rs Add dummy impls for trace_macros and log_syntax 2021-10-26 20:52:38 +02:00
db.rs internal: clean up code duplication 2021-10-10 21:08:10 +03:00
eager.rs Include macro path in eager macro resolve error 2021-09-24 15:34:57 +02:00
hygiene.rs internal: clean up code duplication 2021-10-10 21:08:10 +03:00
lib.rs Merge #10704 2021-11-05 15:06:37 +00:00
name.rs Replace more Name::to_string usages with Name::to_smol_str 2021-11-04 18:12:05 +01:00
proc_macro.rs Don't discard attributed items when a proc-macro unexpectedly fails to expand 2021-10-29 15:10:44 +02:00
quote.rs Escape characters in builtin macros correctly 2021-05-09 19:57:29 +08:00