aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/render/enum_variant.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-11-27 16:14:04 +0000
committerGitHub <[email protected]>2020-11-27 16:14:04 +0000
commit0993f9067cfc14cded484906283d1df8e8741e8e (patch)
tree235ecf5049b1af3ed8fdf35cad5b66ceb8f28ff4 /crates/completion/src/render/enum_variant.rs
parentc66d477f5a72247b04b9025f6ba9c403ca628d41 (diff)
parent04cd4b17bb04031ecf7c7e9b734d22ea74d8f114 (diff)
Merge #6651
6651: Profile completions better r=SomeoneToIgnore a=SomeoneToIgnore During https://github.com/rust-analyzer/rust-analyzer/issues/6612 investigation, had added a few more profiling points and considered that they can be useful later, ergo the PR. Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/completion/src/render/enum_variant.rs')
-rw-r--r--crates/completion/src/render/enum_variant.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/completion/src/render/enum_variant.rs b/crates/completion/src/render/enum_variant.rs
index 6070e9b1d..64e742b77 100644
--- a/crates/completion/src/render/enum_variant.rs
+++ b/crates/completion/src/render/enum_variant.rs
@@ -17,6 +17,7 @@ pub(crate) fn render_enum_variant<'a>(
17 variant: hir::EnumVariant, 17 variant: hir::EnumVariant,
18 path: Option<ModPath>, 18 path: Option<ModPath>,
19) -> CompletionItem { 19) -> CompletionItem {
20 let _p = profile::span("render_enum_variant");
20 EnumVariantRender::new(ctx, local_name, variant, path).render(import_data) 21 EnumVariantRender::new(ctx, local_name, variant, path).render(import_data)
21} 22}
22 23