Skip to content

Commit 47ec2ce

Browse files
committed
prune deps
1 parent a875795 commit 47ec2ce

File tree

4 files changed

+12
-47
lines changed

4 files changed

+12
-47
lines changed

Cargo.lock

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

crates/ra_hir/Cargo.toml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,11 @@ authors = ["rust-analyzer developers"]
88
doctest = false
99

1010
[dependencies]
11-
arrayvec = "0.5.1"
1211
log = "0.4.5"
1312
rustc-hash = "1.0"
14-
parking_lot = "0.10.0"
15-
ena = "0.13"
16-
once_cell = "1.0.1"
1713

1814
ra_syntax = { path = "../ra_syntax" }
19-
ra_arena = { path = "../ra_arena" }
20-
ra_cfg = { path = "../ra_cfg" }
2115
ra_db = { path = "../ra_db" }
22-
mbe = { path = "../ra_mbe", package = "ra_mbe" }
23-
tt = { path = "../ra_tt", package = "ra_tt" }
2416
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
2517
hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
2618
hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" }
27-
test_utils = { path = "../test_utils" }
28-
ra_prof = { path = "../ra_prof" }
29-
30-
# https://github.com/rust-lang/chalk/pull/294
31-
chalk-solve = { git = "https://github.com/jackh726/chalk.git", rev = "095cd38a4f16337913bba487f2055b9ca0179f30" }
32-
chalk-rust-ir = { git = "https://github.com/jackh726/chalk.git", rev = "095cd38a4f16337913bba487f2055b9ca0179f30" }
33-
chalk-ir = { git = "https://github.com/jackh726/chalk.git", rev = "095cd38a4f16337913bba487f2055b9ca0179f30" }
34-
35-
lalrpop-intern = "0.15.1"
36-
37-
[dev-dependencies]
38-
insta = "0.12.0"

crates/ra_hir_ty/Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ doctest = false
99

1010
[dependencies]
1111
arrayvec = "0.5.1"
12+
ena = "0.13"
1213
log = "0.4.5"
1314
rustc-hash = "1.0"
14-
parking_lot = "0.10.0"
15-
ena = "0.13"
1615

17-
ra_syntax = { path = "../ra_syntax" }
16+
hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
17+
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
1818
ra_arena = { path = "../ra_arena" }
1919
ra_db = { path = "../ra_db" }
20-
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
21-
hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
22-
test_utils = { path = "../test_utils" }
2320
ra_prof = { path = "../ra_prof" }
21+
ra_syntax = { path = "../ra_syntax" }
22+
test_utils = { path = "../test_utils" }
2423

2524
# https://github.com/rust-lang/chalk/pull/294
2625
chalk-solve = { git = "https://github.com/jackh726/chalk.git", rev = "095cd38a4f16337913bba487f2055b9ca0179f30" }

crates/ra_hir_ty/src/test_db.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
//! Database used for testing `hir`.
22
3-
use std::{panic, sync::Arc};
3+
use std::{
4+
panic,
5+
sync::{Arc, Mutex},
6+
};
47

58
use hir_def::{db::DefDatabase, AssocItemId, ModuleDefId, ModuleId};
69
use hir_expand::diagnostics::DiagnosticSink;
7-
use parking_lot::Mutex;
810
use ra_db::{salsa, CrateId, FileId, FileLoader, FileLoaderDelegate, RelativePath, SourceDatabase};
911

1012
use crate::{db::HirDatabase, expr::ExprValidator};
@@ -33,7 +35,7 @@ impl salsa::Database for TestDB {
3335
}
3436

3537
fn salsa_event(&self, event: impl Fn() -> salsa::Event<TestDB>) {
36-
let mut events = self.events.lock();
38+
let mut events = self.events.lock().unwrap();
3739
if let Some(events) = &mut *events {
3840
events.push(event());
3941
}
@@ -122,9 +124,9 @@ impl TestDB {
122124

123125
impl TestDB {
124126
pub fn log(&self, f: impl FnOnce()) -> Vec<salsa::Event<TestDB>> {
125-
*self.events.lock() = Some(Vec::new());
127+
*self.events.lock().unwrap() = Some(Vec::new());
126128
f();
127-
self.events.lock().take().unwrap()
129+
self.events.lock().unwrap().take().unwrap()
128130
}
129131

130132
pub fn log_executed(&self, f: impl FnOnce()) -> Vec<String> {

0 commit comments

Comments
 (0)