Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit d1376b5

Browse files
committed
Auto merge of #1729 - workingjubilee:latest-itertools-fst, r=Xanewok
itertools = 0.9, fst = 0.4 Bumps itertools, fst, and rayon's dependencies, which allows for two dependencies to be removed from the lockfile. Slightly alters fst::Map's signature because it is now generic.
2 parents c7a19f6 + fa72434 commit d1376b5

File tree

6 files changed

+35
-52
lines changed

6 files changed

+35
-52
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ test = false
2121
path = "rls/src/main.rs"
2222

2323
[dependencies]
24-
rls-analysis = "0.18.1"
24+
# FIXME: Release rls-analysis 0.18.2 to crates.io
25+
rls-analysis = { version = "0.18.2", path = "rls-analysis" }
2526
rls-data = "0.19"
2627
# FIXME: Release rls-rustc 0.6.0 to crates.io
2728
rls-rustc = { version = "0.6.0", path = "rls-rustc" }
@@ -36,7 +37,7 @@ cargo_metadata = "0.8"
3637
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "7ea7cd165ad6705603852771bf82cc2fd6560db5", optional = true }
3738
env_logger = "0.7"
3839
home = "0.5.1"
39-
itertools = "0.8"
40+
itertools = "0.9"
4041
jsonrpc-core = "17"
4142
lsp-types = { version = "0.60", features = ["proposed"] }
4243
lazy_static = "1"

rls-analysis/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rls-analysis"
3-
version = "0.18.1"
3+
version = "0.18.2"
44
edition = "2018"
55
authors = ["Nick Cameron <[email protected]>"]
66
description = "Library for processing rustc's save-analysis data for the RLS"
@@ -21,8 +21,8 @@ log = "0.4"
2121
rls-data = "= 0.19"
2222
rls-span = "0.5.2"
2323
derive-new = "0.5"
24-
fst = { version = "0.3", default-features = false }
25-
itertools = "0.8"
24+
fst = { version = "0.4", default-features = false }
25+
itertools = "0.9"
2626
json = "0.12"
2727
serde = "1.0"
2828
serde_json = "1.0"

rls-analysis/src/analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct PerCrateAnalysis {
4242

4343
// Index of all symbols that powers the search.
4444
// See `SymbolQuery`.
45-
pub def_fst: fst::Map,
45+
pub def_fst: fst::Map<Vec<u8>>,
4646
pub def_fst_values: Vec<Vec<Id>>,
4747

4848
pub ref_spans: HashMap<Id, Vec<Span>>,

rls-analysis/src/lowering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ fn abs_ref_id<L: AnalysisLoader>(
514514
None
515515
}
516516

517-
fn build_index(mut defs: Vec<(String, Id)>) -> (fst::Map, Vec<Vec<Id>>) {
517+
fn build_index(mut defs: Vec<(String, Id)>) -> (fst::Map<Vec<u8>>, Vec<Vec<Id>>) {
518518
defs.sort_by(|(n1, _), (n2, _)| n1.cmp(n2));
519519
let by_name = defs.into_iter().group_by(|(n, _)| n.clone());
520520

rls-analysis/src/symbol_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl SymbolQuery {
4747

4848
pub(crate) fn build_stream<'a, I>(&'a self, fsts: I) -> fst::map::Union<'a>
4949
where
50-
I: Iterator<Item = &'a fst::Map>,
50+
I: Iterator<Item = &'a fst::Map<Vec<u8>>>,
5151
{
5252
let mut stream = fst::map::OpBuilder::new();
5353
let automaton = QueryAutomaton { query: &self.query_string, mode: self.mode };

0 commit comments

Comments
 (0)