diff options
author | Aleksey Kladov <[email protected]> | 2020-07-08 17:22:57 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-08 17:26:31 +0100 |
commit | 7ae696ba7642aba92c2eed012d9e02c09bab7460 (patch) | |
tree | 1e857cfb2bf16a884f3aab374e0239ab7ff16349 /crates | |
parent | 35e4bb35062a5e9e72282f33a0feaa9aea2151c5 (diff) |
Remove unwanted dependency
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_db/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/src/bin/args.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/src/bin/main.rs | 5 | ||||
-rw-r--r-- | crates/rust-analyzer/src/cargo_target_spec.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/src/cli/analysis_bench.rs | 3 | ||||
-rw-r--r-- | crates/rust-analyzer/src/cli/load_cargo.rs | 4 | ||||
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/tests/heavy_tests/support.rs | 11 |
8 files changed, 15 insertions, 16 deletions
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 183822601..3a8fd44c4 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs | |||
@@ -18,7 +18,7 @@ pub use crate::{ | |||
18 | }; | 18 | }; |
19 | pub use relative_path::{RelativePath, RelativePathBuf}; | 19 | pub use relative_path::{RelativePath, RelativePathBuf}; |
20 | pub use salsa; | 20 | pub use salsa; |
21 | pub use vfs::{file_set::FileSet, AbsPathBuf, VfsPath}; | 21 | pub use vfs::{file_set::FileSet, VfsPath}; |
22 | 22 | ||
23 | #[macro_export] | 23 | #[macro_export] |
24 | macro_rules! impl_intern_key { | 24 | macro_rules! impl_intern_key { |
diff --git a/crates/rust-analyzer/src/bin/args.rs b/crates/rust-analyzer/src/bin/args.rs index 85c2e415a..d0e566f47 100644 --- a/crates/rust-analyzer/src/bin/args.rs +++ b/crates/rust-analyzer/src/bin/args.rs | |||
@@ -7,9 +7,9 @@ use std::{env, fmt::Write, path::PathBuf}; | |||
7 | 7 | ||
8 | use anyhow::{bail, Result}; | 8 | use anyhow::{bail, Result}; |
9 | use pico_args::Arguments; | 9 | use pico_args::Arguments; |
10 | use ra_db::AbsPathBuf; | ||
11 | use ra_ssr::{SsrPattern, SsrRule}; | 10 | use ra_ssr::{SsrPattern, SsrRule}; |
12 | use rust_analyzer::cli::{BenchWhat, Position, Verbosity}; | 11 | use rust_analyzer::cli::{BenchWhat, Position, Verbosity}; |
12 | use vfs::AbsPathBuf; | ||
13 | 13 | ||
14 | pub(crate) struct Args { | 14 | pub(crate) struct Args { |
15 | pub(crate) verbosity: Verbosity, | 15 | pub(crate) verbosity: Verbosity, |
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs index eec76d415..047772d0c 100644 --- a/crates/rust-analyzer/src/bin/main.rs +++ b/crates/rust-analyzer/src/bin/main.rs | |||
@@ -6,14 +6,13 @@ mod args; | |||
6 | use std::convert::TryFrom; | 6 | use std::convert::TryFrom; |
7 | 7 | ||
8 | use lsp_server::Connection; | 8 | use lsp_server::Connection; |
9 | use ra_project_model::ProjectManifest; | ||
9 | use rust_analyzer::{ | 10 | use rust_analyzer::{ |
10 | cli, | 11 | cli, |
11 | config::{Config, LinkedProject}, | 12 | config::{Config, LinkedProject}, |
12 | from_json, Result, | 13 | from_json, Result, |
13 | }; | 14 | }; |
14 | 15 | use vfs::AbsPathBuf; | |
15 | use ra_db::AbsPathBuf; | ||
16 | use ra_project_model::ProjectManifest; | ||
17 | 16 | ||
18 | use crate::args::HelpPrinted; | 17 | use crate::args::HelpPrinted; |
19 | 18 | ||
diff --git a/crates/rust-analyzer/src/cargo_target_spec.rs b/crates/rust-analyzer/src/cargo_target_spec.rs index 929926cbc..318399624 100644 --- a/crates/rust-analyzer/src/cargo_target_spec.rs +++ b/crates/rust-analyzer/src/cargo_target_spec.rs | |||
@@ -1,9 +1,9 @@ | |||
1 | //! See `CargoTargetSpec` | 1 | //! See `CargoTargetSpec` |
2 | 2 | ||
3 | use ra_cfg::CfgExpr; | 3 | use ra_cfg::CfgExpr; |
4 | use ra_db::AbsPathBuf; | ||
5 | use ra_ide::{FileId, RunnableKind, TestId}; | 4 | use ra_ide::{FileId, RunnableKind, TestId}; |
6 | use ra_project_model::{self, TargetKind}; | 5 | use ra_project_model::{self, TargetKind}; |
6 | use vfs::AbsPathBuf; | ||
7 | 7 | ||
8 | use crate::{global_state::GlobalStateSnapshot, Result}; | 8 | use crate::{global_state::GlobalStateSnapshot, Result}; |
9 | 9 | ||
diff --git a/crates/rust-analyzer/src/cli/analysis_bench.rs b/crates/rust-analyzer/src/cli/analysis_bench.rs index 90990d3e7..a93d5fb73 100644 --- a/crates/rust-analyzer/src/cli/analysis_bench.rs +++ b/crates/rust-analyzer/src/cli/analysis_bench.rs | |||
@@ -5,9 +5,10 @@ use std::{env, path::Path, str::FromStr, sync::Arc, time::Instant}; | |||
5 | use anyhow::{format_err, Result}; | 5 | use anyhow::{format_err, Result}; |
6 | use ra_db::{ | 6 | use ra_db::{ |
7 | salsa::{Database, Durability}, | 7 | salsa::{Database, Durability}, |
8 | AbsPathBuf, FileId, | 8 | FileId, |
9 | }; | 9 | }; |
10 | use ra_ide::{Analysis, AnalysisChange, AnalysisHost, CompletionConfig, FilePosition, LineCol}; | 10 | use ra_ide::{Analysis, AnalysisChange, AnalysisHost, CompletionConfig, FilePosition, LineCol}; |
11 | use vfs::AbsPathBuf; | ||
11 | 12 | ||
12 | use crate::cli::{load_cargo::load_cargo, Verbosity}; | 13 | use crate::cli::{load_cargo::load_cargo, Verbosity}; |
13 | 14 | ||
diff --git a/crates/rust-analyzer/src/cli/load_cargo.rs b/crates/rust-analyzer/src/cli/load_cargo.rs index d8677c231..a43bf2244 100644 --- a/crates/rust-analyzer/src/cli/load_cargo.rs +++ b/crates/rust-analyzer/src/cli/load_cargo.rs | |||
@@ -4,10 +4,10 @@ use std::{path::Path, sync::Arc}; | |||
4 | 4 | ||
5 | use anyhow::Result; | 5 | use anyhow::Result; |
6 | use crossbeam_channel::{unbounded, Receiver}; | 6 | use crossbeam_channel::{unbounded, Receiver}; |
7 | use ra_db::{AbsPathBuf, CrateGraph}; | 7 | use ra_db::CrateGraph; |
8 | use ra_ide::{AnalysisChange, AnalysisHost}; | 8 | use ra_ide::{AnalysisChange, AnalysisHost}; |
9 | use ra_project_model::{CargoConfig, ProcMacroClient, ProjectManifest, ProjectWorkspace}; | 9 | use ra_project_model::{CargoConfig, ProcMacroClient, ProjectManifest, ProjectWorkspace}; |
10 | use vfs::{loader::Handle, AbsPath}; | 10 | use vfs::{loader::Handle, AbsPath, AbsPathBuf}; |
11 | 11 | ||
12 | use crate::reload::{ProjectFolders, SourceRootConfig}; | 12 | use crate::reload::{ProjectFolders, SourceRootConfig}; |
13 | 13 | ||
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index e42e41a41..9e7de0243 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -11,10 +11,10 @@ use std::{ffi::OsString, path::PathBuf}; | |||
11 | 11 | ||
12 | use flycheck::FlycheckConfig; | 12 | use flycheck::FlycheckConfig; |
13 | use lsp_types::ClientCapabilities; | 13 | use lsp_types::ClientCapabilities; |
14 | use ra_db::AbsPathBuf; | ||
15 | use ra_ide::{AssistConfig, CompletionConfig, HoverConfig, InlayHintsConfig}; | 14 | use ra_ide::{AssistConfig, CompletionConfig, HoverConfig, InlayHintsConfig}; |
16 | use ra_project_model::{CargoConfig, ProjectJson, ProjectJsonData, ProjectManifest}; | 15 | use ra_project_model::{CargoConfig, ProjectJson, ProjectJsonData, ProjectManifest}; |
17 | use serde::Deserialize; | 16 | use serde::Deserialize; |
17 | use vfs::AbsPathBuf; | ||
18 | 18 | ||
19 | use crate::diagnostics::DiagnosticsConfig; | 19 | use crate::diagnostics::DiagnosticsConfig; |
20 | 20 | ||
diff --git a/crates/rust-analyzer/tests/heavy_tests/support.rs b/crates/rust-analyzer/tests/heavy_tests/support.rs index 7bf687794..e51796d36 100644 --- a/crates/rust-analyzer/tests/heavy_tests/support.rs +++ b/crates/rust-analyzer/tests/heavy_tests/support.rs | |||
@@ -12,17 +12,16 @@ use lsp_types::{ | |||
12 | notification::Exit, request::Shutdown, TextDocumentIdentifier, Url, WorkDoneProgress, | 12 | notification::Exit, request::Shutdown, TextDocumentIdentifier, Url, WorkDoneProgress, |
13 | }; | 13 | }; |
14 | use lsp_types::{ProgressParams, ProgressParamsValue}; | 14 | use lsp_types::{ProgressParams, ProgressParamsValue}; |
15 | use serde::Serialize; | ||
16 | use serde_json::{to_string_pretty, Value}; | ||
17 | use tempfile::TempDir; | ||
18 | use test_utils::{find_mismatch, Fixture}; | ||
19 | |||
20 | use ra_db::AbsPathBuf; | ||
21 | use ra_project_model::ProjectManifest; | 15 | use ra_project_model::ProjectManifest; |
22 | use rust_analyzer::{ | 16 | use rust_analyzer::{ |
23 | config::{ClientCapsConfig, Config, FilesConfig, FilesWatcher, LinkedProject}, | 17 | config::{ClientCapsConfig, Config, FilesConfig, FilesWatcher, LinkedProject}, |
24 | main_loop, | 18 | main_loop, |
25 | }; | 19 | }; |
20 | use serde::Serialize; | ||
21 | use serde_json::{to_string_pretty, Value}; | ||
22 | use tempfile::TempDir; | ||
23 | use test_utils::{find_mismatch, Fixture}; | ||
24 | use vfs::AbsPathBuf; | ||
26 | 25 | ||
27 | pub struct Project<'a> { | 26 | pub struct Project<'a> { |
28 | fixture: &'a str, | 27 | fixture: &'a str, |