Skip to content

Commit 1b12021

Browse files
committed
Auto merge of #12078 - Veykril:neither, r=Veykril
minor: Re-export `FxHashMap` and `FxHashSet` from `ide_db`
2 parents 04000c3 + 4255996 commit 1b12021

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+70
-94
lines changed

Cargo.lock

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ide/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ crossbeam-channel = "0.5.4"
1515
either = "1.6.1"
1616
itertools = "0.10.3"
1717
tracing = "0.1.32"
18-
rustc-hash = "1.1.0"
1918
oorandom = "11.1.3"
2019
pulldown-cmark-to-cmark = "10.0.1"
2120
pulldown-cmark = { version = "0.9.1", default-features = false }

crates/ide/src/folding_ranges.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use ide_db::syntax_helpers::node_ext::vis_eq;
2-
use rustc_hash::FxHashSet;
3-
1+
use ide_db::{syntax_helpers::node_ext::vis_eq, FxHashSet};
42
use syntax::{
53
ast::{self, AstNode, AstToken},
64
match_ast, Direction, NodeOrToken, SourceFile,

crates/ide/src/highlight_related.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ use ide_db::{
55
helpers::pick_best_token,
66
search::{FileReference, ReferenceCategory, SearchScope},
77
syntax_helpers::node_ext::{for_each_break_and_continue_expr, for_each_tail_expr, walk_expr},
8-
RootDatabase,
8+
FxHashSet, RootDatabase,
99
};
10-
use rustc_hash::FxHashSet;
1110
use syntax::{
1211
ast::{self, HasLoopBody},
1312
match_ast, AstNode,

crates/ide/src/inlay_hints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use either::Either;
22
use hir::{known, Callable, HasVisibility, HirDisplay, Semantics, TypeInfo};
33
use ide_db::{
4-
base_db::FileRange, famous_defs::FamousDefs, syntax_helpers::node_ext::walk_ty, RootDatabase,
4+
base_db::FileRange, famous_defs::FamousDefs, syntax_helpers::node_ext::walk_ty, FxHashMap,
5+
RootDatabase,
56
};
67
use itertools::Itertools;
7-
use rustc_hash::FxHashMap;
88
use stdx::to_lower_snake_case;
99
use syntax::{
1010
ast::{self, AstNode, HasArgList, HasGenericParams, HasName, UnaryOp},

crates/ide/src/prime_caches.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ use ide_db::{
1212
salsa::{Database, ParallelDatabase, Snapshot},
1313
Cancelled, CrateGraph, CrateId, SourceDatabase, SourceDatabaseExt,
1414
},
15-
FxIndexMap,
15+
FxHashSet, FxIndexMap,
1616
};
17-
use rustc_hash::FxHashSet;
1817

1918
use crate::RootDatabase;
2019

crates/ide/src/prime_caches/topologic_sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! helper data structure to schedule work for parallel prime caches.
22
use std::{collections::VecDeque, hash::Hash};
33

4-
use rustc_hash::FxHashMap;
4+
use ide_db::FxHashMap;
55

66
pub(crate) struct TopologicSortIterBuilder<T> {
77
nodes: FxHashMap<T, Entry<T>>,

crates/ide/src/references.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ use ide_db::{
1414
base_db::FileId,
1515
defs::{Definition, NameClass, NameRefClass},
1616
search::{ReferenceCategory, SearchScope, UsageSearchResult},
17-
RootDatabase,
17+
FxHashMap, RootDatabase,
1818
};
19-
use rustc_hash::FxHashMap;
2019
use syntax::{
2120
algo::find_node_at_offset,
2221
ast::{self, HasName},

crates/ide/src/runnables.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ use ide_db::{
99
defs::Definition,
1010
helpers::visit_file_defs,
1111
search::SearchScope,
12-
RootDatabase, SymbolKind,
12+
FxHashMap, FxHashSet, RootDatabase, SymbolKind,
1313
};
1414
use itertools::Itertools;
15-
use rustc_hash::{FxHashMap, FxHashSet};
1615
use stdx::{always, format_to};
1716
use syntax::{
1817
ast::{self, AstNode, HasAttrs as _},

crates/ide/src/shuffle_crate_graph.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::sync::Arc;
22

3-
use ide_db::base_db::salsa::Durability;
4-
use ide_db::base_db::{CrateGraph, SourceDatabase};
5-
use ide_db::RootDatabase;
6-
use rustc_hash::FxHashMap;
3+
use ide_db::{
4+
base_db::{salsa::Durability, CrateGraph, SourceDatabase},
5+
FxHashMap, RootDatabase,
6+
};
77

88
// Feature: Shuffle Crate Graph
99
//

0 commit comments

Comments
 (0)