Skip to content

Commit 4109968

Browse files
Remove query aliases
1 parent d776c67 commit 4109968

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

crates/completion/src/completions/unqualified_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn complete_enum_variants(acc: &mut Completions, ctx: &CompletionContext, ty: &T
7272
}
7373

7474
fn fuzzy_completion(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> {
75-
let _p = profile::span("fuzzy_completion®");
75+
let _p = profile::span("fuzzy_completion");
7676
let current_module = ctx.scope.module()?;
7777
let anchor = ctx.name_ref_syntax.as_ref()?;
7878
let import_scope = ImportScope::find_insert_use_container(anchor.syntax(), &ctx.sema)?;

crates/hir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub use hir_def::{
4949
builtin_type::BuiltinType,
5050
docs::Documentation,
5151
find_path::PrefixKind,
52-
import_map::Query as ExternalImportablesQuery,
52+
import_map,
5353
item_scope::ItemInNs,
5454
nameres::ModuleSource,
5555
path::{ModPath, PathKind},

crates/ide_db/src/imports_locator.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//! This module contains an import search funcionality that is provided to the assists module.
22
//! Later, this should be moved away to a separate crate that is accessible from the assists module.
33
4-
use hir::{Crate, ExternalImportablesQuery, MacroDef, ModuleDef, Semantics};
4+
use hir::{import_map, Crate, MacroDef, ModuleDef, Semantics};
55
use syntax::{ast, AstNode, SyntaxKind::NAME};
66

77
use crate::{
88
defs::{Definition, NameClass},
9-
symbol_index::{self, FileSymbol, Query as LocalImportablesQuery},
9+
symbol_index::{self, FileSymbol},
1010
RootDatabase,
1111
};
1212
use either::Either;
@@ -22,12 +22,12 @@ pub fn find_exact_imports<'a>(
2222
sema,
2323
krate,
2424
{
25-
let mut local_query = LocalImportablesQuery::new(name_to_import.to_string());
25+
let mut local_query = symbol_index::Query::new(name_to_import.to_string());
2626
local_query.exact();
2727
local_query.limit(40);
2828
local_query
2929
},
30-
ExternalImportablesQuery::new(name_to_import).anchor_end().case_sensitive().limit(40),
30+
import_map::Query::new(name_to_import).anchor_end().case_sensitive().limit(40),
3131
)
3232
}
3333

@@ -42,19 +42,19 @@ pub fn find_similar_imports<'a>(
4242
sema,
4343
krate,
4444
{
45-
let mut local_query = LocalImportablesQuery::new(name_to_import.to_string());
45+
let mut local_query = symbol_index::Query::new(name_to_import.to_string());
4646
local_query.limit(limit);
4747
local_query
4848
},
49-
ExternalImportablesQuery::new(name_to_import).limit(limit),
49+
import_map::Query::new(name_to_import).limit(limit),
5050
)
5151
}
5252

5353
fn find_imports<'a>(
5454
sema: &Semantics<'a, RootDatabase>,
5555
krate: Crate,
56-
local_query: LocalImportablesQuery,
57-
external_query: ExternalImportablesQuery,
56+
local_query: symbol_index::Query,
57+
external_query: import_map::Query,
5858
) -> impl Iterator<Item = Either<ModuleDef, MacroDef>> {
5959
let _p = profile::span("find_similar_imports");
6060
let db = sema.db;

0 commit comments

Comments
 (0)