aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/item.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/item.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/item.rs')
-rw-r--r--crates/completion/src/item.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/completion/src/item.rs b/crates/completion/src/item.rs
index b13c3f376..7b62c2c4e 100644
--- a/crates/completion/src/item.rs
+++ b/crates/completion/src/item.rs
@@ -278,6 +278,8 @@ pub(crate) struct Builder {
278 278
279impl Builder { 279impl Builder {
280 pub(crate) fn build(self) -> CompletionItem { 280 pub(crate) fn build(self) -> CompletionItem {
281 let _p = profile::span("item::Builder::build");
282
281 let mut label = self.label; 283 let mut label = self.label;
282 let mut lookup = self.lookup; 284 let mut lookup = self.lookup;
283 let mut insert_text = self.insert_text; 285 let mut insert_text = self.insert_text;