diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-31 16:30:23 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-31 16:30:23 +0100 |
commit | 47c9ee235552fe9eae974ea2560d16c6e5dc7ff4 (patch) | |
tree | 5d5b1a6fca60fc04244475915d2d0ae9b825b3c3 | |
parent | 33a9b947a24a3fe8ba6b9d0e1aa17f471ca9c096 (diff) | |
parent | 70730d7655bf2178d88938651635843b7ef015c8 (diff) |
Merge #3792
3792: Rename cargo_watch -> flycheck r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r-- | Cargo.lock | 30 | ||||
-rw-r--r-- | crates/ra_flycheck/Cargo.toml (renamed from crates/ra_cargo_watch/Cargo.toml) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv.rs (renamed from crates/ra_cargo_watch/src/conv.rs) | 0 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_clippy_pass_by_ref.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_clippy_pass_by_ref.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_handles_macro_location.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_handles_macro_location.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_macro_compiler_error.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_macro_compiler_error.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_multi_line_fix.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_multi_line_fix.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_incompatible_type_for_trait.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_incompatible_type_for_trait.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_mismatched_type.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_mismatched_type.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_unused_variable.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_unused_variable.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_wrong_number_of_parameters.snap (renamed from crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_wrong_number_of_parameters.snap) | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/conv/test.rs (renamed from crates/ra_cargo_watch/src/conv/test.rs) | 0 | ||||
-rw-r--r-- | crates/ra_flycheck/src/lib.rs (renamed from crates/ra_cargo_watch/src/lib.rs) | 0 | ||||
-rw-r--r-- | crates/ra_project_model/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_project_model/src/cargo_workspace.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/src/world.rs | 2 |
18 files changed, 29 insertions, 29 deletions
diff --git a/Cargo.lock b/Cargo.lock index f618fcc3d..bdbb316cd 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -887,19 +887,6 @@ dependencies = [ | |||
887 | ] | 887 | ] |
888 | 888 | ||
889 | [[package]] | 889 | [[package]] |
890 | name = "ra_cargo_watch" | ||
891 | version = "0.1.0" | ||
892 | dependencies = [ | ||
893 | "cargo_metadata", | ||
894 | "crossbeam-channel", | ||
895 | "insta", | ||
896 | "jod-thread", | ||
897 | "log", | ||
898 | "lsp-types", | ||
899 | "serde_json", | ||
900 | ] | ||
901 | |||
902 | [[package]] | ||
903 | name = "ra_cfg" | 890 | name = "ra_cfg" |
904 | version = "0.1.0" | 891 | version = "0.1.0" |
905 | dependencies = [ | 892 | dependencies = [ |
@@ -924,6 +911,19 @@ dependencies = [ | |||
924 | ] | 911 | ] |
925 | 912 | ||
926 | [[package]] | 913 | [[package]] |
914 | name = "ra_flycheck" | ||
915 | version = "0.1.0" | ||
916 | dependencies = [ | ||
917 | "cargo_metadata", | ||
918 | "crossbeam-channel", | ||
919 | "insta", | ||
920 | "jod-thread", | ||
921 | "log", | ||
922 | "lsp-types", | ||
923 | "serde_json", | ||
924 | ] | ||
925 | |||
926 | [[package]] | ||
927 | name = "ra_fmt" | 927 | name = "ra_fmt" |
928 | version = "0.1.0" | 928 | version = "0.1.0" |
929 | dependencies = [ | 929 | dependencies = [ |
@@ -1101,9 +1101,9 @@ dependencies = [ | |||
1101 | "cargo_metadata", | 1101 | "cargo_metadata", |
1102 | "log", | 1102 | "log", |
1103 | "ra_arena", | 1103 | "ra_arena", |
1104 | "ra_cargo_watch", | ||
1105 | "ra_cfg", | 1104 | "ra_cfg", |
1106 | "ra_db", | 1105 | "ra_db", |
1106 | "ra_flycheck", | ||
1107 | "ra_proc_macro", | 1107 | "ra_proc_macro", |
1108 | "rustc-hash", | 1108 | "rustc-hash", |
1109 | "serde", | 1109 | "serde", |
@@ -1300,8 +1300,8 @@ dependencies = [ | |||
1300 | "lsp-types", | 1300 | "lsp-types", |
1301 | "parking_lot", | 1301 | "parking_lot", |
1302 | "pico-args", | 1302 | "pico-args", |
1303 | "ra_cargo_watch", | ||
1304 | "ra_db", | 1303 | "ra_db", |
1304 | "ra_flycheck", | ||
1305 | "ra_hir", | 1305 | "ra_hir", |
1306 | "ra_hir_def", | 1306 | "ra_hir_def", |
1307 | "ra_hir_ty", | 1307 | "ra_hir_ty", |
diff --git a/crates/ra_cargo_watch/Cargo.toml b/crates/ra_flycheck/Cargo.toml index 300033a18..c9a9ddc12 100644 --- a/crates/ra_cargo_watch/Cargo.toml +++ b/crates/ra_flycheck/Cargo.toml | |||
@@ -1,6 +1,6 @@ | |||
1 | [package] | 1 | [package] |
2 | edition = "2018" | 2 | edition = "2018" |
3 | name = "ra_cargo_watch" | 3 | name = "ra_flycheck" |
4 | version = "0.1.0" | 4 | version = "0.1.0" |
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | 6 | ||
diff --git a/crates/ra_cargo_watch/src/conv.rs b/crates/ra_flycheck/src/conv.rs index 817543deb..817543deb 100644 --- a/crates/ra_cargo_watch/src/conv.rs +++ b/crates/ra_flycheck/src/conv.rs | |||
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_clippy_pass_by_ref.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_clippy_pass_by_ref.snap index a59fa84fa..4c9db0385 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_clippy_pass_by_ref.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_clippy_pass_by_ref.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_handles_macro_location.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_handles_macro_location.snap index 61ae0c9ae..7cde4d867 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_handles_macro_location.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_handles_macro_location.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_macro_compiler_error.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_macro_compiler_error.snap index 641da1a58..1cc37e087 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_macro_compiler_error.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_macro_compiler_error.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_multi_line_fix.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_multi_line_fix.snap index 0557a2e79..615ed8378 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_multi_line_fix.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_multi_line_fix.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_incompatible_type_for_trait.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_incompatible_type_for_trait.snap index 754bc33a4..0df0fce18 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_incompatible_type_for_trait.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_incompatible_type_for_trait.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_mismatched_type.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_mismatched_type.snap index 78b7f7cc8..28ebcb3b3 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_mismatched_type.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_mismatched_type.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_unused_variable.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_unused_variable.snap index 5989ed202..5e0873281 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_unused_variable.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_unused_variable.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_wrong_number_of_parameters.snap b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_wrong_number_of_parameters.snap index e34b546dc..e500d3cd6 100644 --- a/crates/ra_cargo_watch/src/conv/snapshots/ra_cargo_watch__conv__test__snap_rustc_wrong_number_of_parameters.snap +++ b/crates/ra_flycheck/src/conv/snapshots/ra_flycheck__conv__test__snap_rustc_wrong_number_of_parameters.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | source: crates/ra_cargo_watch/src/conv/test.rs | 2 | source: crates/ra_flycheck/src/conv/test.rs |
3 | expression: diag | 3 | expression: diag |
4 | --- | 4 | --- |
5 | [ | 5 | [ |
diff --git a/crates/ra_cargo_watch/src/conv/test.rs b/crates/ra_flycheck/src/conv/test.rs index 4e81455ca..4e81455ca 100644 --- a/crates/ra_cargo_watch/src/conv/test.rs +++ b/crates/ra_flycheck/src/conv/test.rs | |||
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_flycheck/src/lib.rs index 77ede8f63..77ede8f63 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_flycheck/src/lib.rs | |||
diff --git a/crates/ra_project_model/Cargo.toml b/crates/ra_project_model/Cargo.toml index cdcdd63c9..c3b7a8f74 100644 --- a/crates/ra_project_model/Cargo.toml +++ b/crates/ra_project_model/Cargo.toml | |||
@@ -16,7 +16,7 @@ cargo_metadata = "0.9.1" | |||
16 | ra_arena = { path = "../ra_arena" } | 16 | ra_arena = { path = "../ra_arena" } |
17 | ra_db = { path = "../ra_db" } | 17 | ra_db = { path = "../ra_db" } |
18 | ra_cfg = { path = "../ra_cfg" } | 18 | ra_cfg = { path = "../ra_cfg" } |
19 | ra_cargo_watch = { path = "../ra_cargo_watch" } | 19 | ra_flycheck = { path = "../ra_flycheck" } |
20 | ra_proc_macro = { path = "../ra_proc_macro" } | 20 | ra_proc_macro = { path = "../ra_proc_macro" } |
21 | 21 | ||
22 | serde = { version = "1.0.104", features = ["derive"] } | 22 | serde = { version = "1.0.104", features = ["derive"] } |
diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs index 0aea01d83..78ea2ab58 100644 --- a/crates/ra_project_model/src/cargo_workspace.rs +++ b/crates/ra_project_model/src/cargo_workspace.rs | |||
@@ -9,8 +9,8 @@ use std::{ | |||
9 | use anyhow::{Context, Result}; | 9 | use anyhow::{Context, Result}; |
10 | use cargo_metadata::{BuildScript, CargoOpt, Message, MetadataCommand, PackageId}; | 10 | use cargo_metadata::{BuildScript, CargoOpt, Message, MetadataCommand, PackageId}; |
11 | use ra_arena::{Arena, Idx}; | 11 | use ra_arena::{Arena, Idx}; |
12 | use ra_cargo_watch::run_cargo; | ||
13 | use ra_db::Edition; | 12 | use ra_db::Edition; |
13 | use ra_flycheck::run_cargo; | ||
14 | use rustc_hash::FxHashMap; | 14 | use rustc_hash::FxHashMap; |
15 | use serde::Deserialize; | 15 | use serde::Deserialize; |
16 | 16 | ||
diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 8fe6799d2..f5f773432 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml | |||
@@ -33,7 +33,7 @@ threadpool = "1.7.1" | |||
33 | stdx = { path = "../stdx" } | 33 | stdx = { path = "../stdx" } |
34 | 34 | ||
35 | lsp-server = "0.3.1" | 35 | lsp-server = "0.3.1" |
36 | ra_cargo_watch = { path = "../ra_cargo_watch" } | 36 | ra_flycheck = { path = "../ra_flycheck" } |
37 | ra_ide = { path = "../ra_ide" } | 37 | ra_ide = { path = "../ra_ide" } |
38 | ra_prof = { path = "../ra_prof" } | 38 | ra_prof = { path = "../ra_prof" } |
39 | ra_project_model = { path = "../ra_project_model" } | 39 | ra_project_model = { path = "../ra_project_model" } |
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 9fd568601..bb33fb27d 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -21,7 +21,7 @@ use lsp_types::{ | |||
21 | WorkDoneProgressBegin, WorkDoneProgressCreateParams, WorkDoneProgressEnd, | 21 | WorkDoneProgressBegin, WorkDoneProgressCreateParams, WorkDoneProgressEnd, |
22 | WorkDoneProgressReport, | 22 | WorkDoneProgressReport, |
23 | }; | 23 | }; |
24 | use ra_cargo_watch::{url_from_path_with_drive_lowercasing, CheckConfig, CheckTask}; | 24 | use ra_flycheck::{url_from_path_with_drive_lowercasing, CheckConfig, CheckTask}; |
25 | use ra_ide::{Canceled, FileId, InlayHintsConfig, LibraryData, SourceRootId}; | 25 | use ra_ide::{Canceled, FileId, InlayHintsConfig, LibraryData, SourceRootId}; |
26 | use ra_prof::profile; | 26 | use ra_prof::profile; |
27 | use ra_vfs::{VfsFile, VfsTask, Watch}; | 27 | use ra_vfs::{VfsFile, VfsTask, Watch}; |
diff --git a/crates/rust-analyzer/src/world.rs b/crates/rust-analyzer/src/world.rs index 4e2ddcb8b..acb729bae 100644 --- a/crates/rust-analyzer/src/world.rs +++ b/crates/rust-analyzer/src/world.rs | |||
@@ -11,7 +11,7 @@ use std::{ | |||
11 | use crossbeam_channel::{unbounded, Receiver}; | 11 | use crossbeam_channel::{unbounded, Receiver}; |
12 | use lsp_types::Url; | 12 | use lsp_types::Url; |
13 | use parking_lot::RwLock; | 13 | use parking_lot::RwLock; |
14 | use ra_cargo_watch::{url_from_path_with_drive_lowercasing, CheckConfig, CheckWatcher}; | 14 | use ra_flycheck::{url_from_path_with_drive_lowercasing, CheckConfig, CheckWatcher}; |
15 | use ra_ide::{ | 15 | use ra_ide::{ |
16 | Analysis, AnalysisChange, AnalysisHost, CrateGraph, FileId, InlayHintsConfig, LibraryData, | 16 | Analysis, AnalysisChange, AnalysisHost, CrateGraph, FileId, InlayHintsConfig, LibraryData, |
17 | SourceRootId, | 17 | SourceRootId, |