aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_batch
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-14 13:15:47 +0100
committerAleksey Kladov <[email protected]>2019-10-14 13:15:47 +0100
commit1555a1aa0d5d45e4b317db272c07ad3e8470553d (patch)
treef16b9bfdb058055b72e587ef4ac23b106e06ee7e /crates/ra_batch
parent77f2dd96a122e59a8d8df8afb53a741df9b1af76 (diff)
remove one more dependency on source roots
Diffstat (limited to 'crates/ra_batch')
-rw-r--r--crates/ra_batch/src/lib.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs
index 602beb439..df49eb13d 100644
--- a/crates/ra_batch/src/lib.rs
+++ b/crates/ra_batch/src/lib.rs
@@ -141,14 +141,8 @@ mod tests {
141 #[test] 141 #[test]
142 fn test_loading_rust_analyzer() { 142 fn test_loading_rust_analyzer() {
143 let path = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap().parent().unwrap(); 143 let path = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap().parent().unwrap();
144 let (host, roots) = load_cargo(path).unwrap(); 144 let (host, _roots) = load_cargo(path).unwrap();
145 let mut n_crates = 0; 145 let n_crates = Crate::all(host.raw_database()).len();
146 for (root, _) in roots {
147 for _krate in Crate::source_root_crates(host.raw_database(), root) {
148 n_crates += 1;
149 }
150 }
151
152 // RA has quite a few crates, but the exact count doesn't matter 146 // RA has quite a few crates, but the exact count doesn't matter
153 assert!(n_crates > 20); 147 assert!(n_crates > 20);
154 } 148 }