diff options
Diffstat (limited to 'crates/rust-analyzer/src/integrated_benchmarks.rs')
-rw-r--r-- | crates/rust-analyzer/src/integrated_benchmarks.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/integrated_benchmarks.rs b/crates/rust-analyzer/src/integrated_benchmarks.rs index ba2790acb..781073fe5 100644 --- a/crates/rust-analyzer/src/integrated_benchmarks.rs +++ b/crates/rust-analyzer/src/integrated_benchmarks.rs | |||
@@ -13,7 +13,10 @@ | |||
13 | use std::{convert::TryFrom, sync::Arc}; | 13 | use std::{convert::TryFrom, sync::Arc}; |
14 | 14 | ||
15 | use ide::{Change, CompletionConfig, FilePosition, TextSize}; | 15 | use ide::{Change, CompletionConfig, FilePosition, TextSize}; |
16 | use ide_db::helpers::{insert_use::InsertUseConfig, merge_imports::MergeBehavior, SnippetCap}; | 16 | use ide_db::helpers::{ |
17 | insert_use::{ImportGranularity, InsertUseConfig}, | ||
18 | SnippetCap, | ||
19 | }; | ||
17 | use test_utils::project_root; | 20 | use test_utils::project_root; |
18 | use vfs::{AbsPathBuf, VfsPath}; | 21 | use vfs::{AbsPathBuf, VfsPath}; |
19 | 22 | ||
@@ -133,8 +136,9 @@ fn integrated_completion_benchmark() { | |||
133 | add_call_argument_snippets: true, | 136 | add_call_argument_snippets: true, |
134 | snippet_cap: SnippetCap::new(true), | 137 | snippet_cap: SnippetCap::new(true), |
135 | insert_use: InsertUseConfig { | 138 | insert_use: InsertUseConfig { |
136 | merge: Some(MergeBehavior::Crate), | 139 | granularity: ImportGranularity::Crate, |
137 | prefix_kind: hir::PrefixKind::ByCrate, | 140 | prefix_kind: hir::PrefixKind::ByCrate, |
141 | enforce_granularity: true, | ||
138 | group: true, | 142 | group: true, |
139 | }, | 143 | }, |
140 | }; | 144 | }; |
@@ -166,8 +170,9 @@ fn integrated_completion_benchmark() { | |||
166 | add_call_argument_snippets: true, | 170 | add_call_argument_snippets: true, |
167 | snippet_cap: SnippetCap::new(true), | 171 | snippet_cap: SnippetCap::new(true), |
168 | insert_use: InsertUseConfig { | 172 | insert_use: InsertUseConfig { |
169 | merge: Some(MergeBehavior::Crate), | 173 | granularity: ImportGranularity::Crate, |
170 | prefix_kind: hir::PrefixKind::ByCrate, | 174 | prefix_kind: hir::PrefixKind::ByCrate, |
175 | enforce_granularity: true, | ||
171 | group: true, | 176 | group: true, |
172 | }, | 177 | }, |
173 | }; | 178 | }; |