diff options
Diffstat (limited to 'crates/ra_cargo_watch')
-rw-r--r-- | crates/ra_cargo_watch/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_cargo_watch/src/conv/test.rs | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/crates/ra_cargo_watch/Cargo.toml b/crates/ra_cargo_watch/Cargo.toml index bcc4648ff..2e411d23b 100644 --- a/crates/ra_cargo_watch/Cargo.toml +++ b/crates/ra_cargo_watch/Cargo.toml | |||
@@ -6,7 +6,7 @@ authors = ["rust-analyzer developers"] | |||
6 | 6 | ||
7 | [dependencies] | 7 | [dependencies] |
8 | crossbeam-channel = "0.4" | 8 | crossbeam-channel = "0.4" |
9 | lsp-types = { version = "0.67.0", features = ["proposed"] } | 9 | lsp-types = { version = "0.68.0", features = ["proposed"] } |
10 | log = "0.4.3" | 10 | log = "0.4.3" |
11 | cargo_metadata = "0.9.1" | 11 | cargo_metadata = "0.9.1" |
12 | jod-thread = "0.1.0" | 12 | jod-thread = "0.1.0" |
diff --git a/crates/ra_cargo_watch/src/conv/test.rs b/crates/ra_cargo_watch/src/conv/test.rs index 381992388..6b86525b8 100644 --- a/crates/ra_cargo_watch/src/conv/test.rs +++ b/crates/ra_cargo_watch/src/conv/test.rs | |||
@@ -1,12 +1,15 @@ | |||
1 | //! This module contains the large and verbose snapshot tests for the | 1 | //! This module contains the large and verbose snapshot tests for the |
2 | //! conversions between `cargo check` json and LSP diagnostics. | 2 | //! conversions between `cargo check` json and LSP diagnostics. |
3 | #[cfg(not(windows))] | ||
3 | use crate::*; | 4 | use crate::*; |
4 | 5 | ||
6 | #[cfg(not(windows))] | ||
5 | fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic { | 7 | fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic { |
6 | serde_json::from_str::<cargo_metadata::diagnostic::Diagnostic>(val).unwrap() | 8 | serde_json::from_str::<cargo_metadata::diagnostic::Diagnostic>(val).unwrap() |
7 | } | 9 | } |
8 | 10 | ||
9 | #[test] | 11 | #[test] |
12 | #[cfg(not(windows))] | ||
10 | fn snap_rustc_incompatible_type_for_trait() { | 13 | fn snap_rustc_incompatible_type_for_trait() { |
11 | let diag = parse_diagnostic( | 14 | let diag = parse_diagnostic( |
12 | r##"{ | 15 | r##"{ |
@@ -60,6 +63,7 @@ fn snap_rustc_incompatible_type_for_trait() { | |||
60 | } | 63 | } |
61 | 64 | ||
62 | #[test] | 65 | #[test] |
66 | #[cfg(not(windows))] | ||
63 | fn snap_rustc_unused_variable() { | 67 | fn snap_rustc_unused_variable() { |
64 | let diag = parse_diagnostic( | 68 | let diag = parse_diagnostic( |
65 | r##"{ | 69 | r##"{ |
@@ -142,6 +146,7 @@ fn snap_rustc_unused_variable() { | |||
142 | } | 146 | } |
143 | 147 | ||
144 | #[test] | 148 | #[test] |
149 | #[cfg(not(windows))] | ||
145 | fn snap_rustc_wrong_number_of_parameters() { | 150 | fn snap_rustc_wrong_number_of_parameters() { |
146 | let diag = parse_diagnostic( | 151 | let diag = parse_diagnostic( |
147 | r##"{ | 152 | r##"{ |
@@ -266,6 +271,7 @@ fn snap_rustc_wrong_number_of_parameters() { | |||
266 | } | 271 | } |
267 | 272 | ||
268 | #[test] | 273 | #[test] |
274 | #[cfg(not(windows))] | ||
269 | fn snap_clippy_pass_by_ref() { | 275 | fn snap_clippy_pass_by_ref() { |
270 | let diag = parse_diagnostic( | 276 | let diag = parse_diagnostic( |
271 | r##"{ | 277 | r##"{ |
@@ -386,6 +392,7 @@ fn snap_clippy_pass_by_ref() { | |||
386 | } | 392 | } |
387 | 393 | ||
388 | #[test] | 394 | #[test] |
395 | #[cfg(not(windows))] | ||
389 | fn snap_rustc_mismatched_type() { | 396 | fn snap_rustc_mismatched_type() { |
390 | let diag = parse_diagnostic( | 397 | let diag = parse_diagnostic( |
391 | r##"{ | 398 | r##"{ |
@@ -429,6 +436,7 @@ fn snap_rustc_mismatched_type() { | |||
429 | } | 436 | } |
430 | 437 | ||
431 | #[test] | 438 | #[test] |
439 | #[cfg(not(windows))] | ||
432 | fn snap_handles_macro_location() { | 440 | fn snap_handles_macro_location() { |
433 | let diag = parse_diagnostic( | 441 | let diag = parse_diagnostic( |
434 | r##"{ | 442 | r##"{ |
@@ -700,6 +708,7 @@ fn snap_handles_macro_location() { | |||
700 | } | 708 | } |
701 | 709 | ||
702 | #[test] | 710 | #[test] |
711 | #[cfg(not(windows))] | ||
703 | fn snap_macro_compiler_error() { | 712 | fn snap_macro_compiler_error() { |
704 | let diag = parse_diagnostic( | 713 | let diag = parse_diagnostic( |
705 | r##"{ | 714 | r##"{ |