diff options
Diffstat (limited to '')
3 files changed, 9 insertions, 6 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/main.rs b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/main.rs index 4cc46af1b..fa55f7d90 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/main.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/main.rs @@ -18,7 +18,6 @@ mod tidy; use std::{collections::HashMap, path::PathBuf, time::Instant}; -use expect_test::expect; use lsp_types::{ notification::DidOpenTextDocument, request::{ @@ -60,7 +59,7 @@ use std::collections::Spam; "#, ) .with_config(serde_json::json!({ - "cargo": { "noSysroot": false } + "cargo": { "sysroot": "discover" } })) .server() .wait_until_workspace_is_loaded(); @@ -615,7 +614,7 @@ fn main() {{}} librs, libs )) .with_config(serde_json::json!({ - "cargo": { "noSysroot": false } + "cargo": { "sysroot": "discover" } })) .server() .wait_until_workspace_is_loaded(); @@ -743,7 +742,7 @@ fn main() { "buildScripts": { "enable": true }, - "noSysroot": true, + "sysroot": null, } })) .server() @@ -821,7 +820,10 @@ fn main() { } #[test] +// FIXME: Re-enable once we can run proc-macro tests on rust-lang/rust-analyzer again +#[cfg(any())] fn resolve_proc_macro() { + use expect_test::expect; if skip_slow_tests() { return; } @@ -898,7 +900,7 @@ pub fn foo(_input: TokenStream) -> TokenStream { "buildScripts": { "enable": true }, - "noSysroot": true, + "sysroot": null, }, "procMacro": { "enable": true, diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/support.rs b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/support.rs index 4fa88c3c6..7257445da 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/support.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/support.rs @@ -34,7 +34,7 @@ impl<'a> Project<'a> { config: serde_json::json!({ "cargo": { // Loading standard library is costly, let's ignore it by default - "noSysroot": true, + "sysroot": null, // Can't use test binary as rustc wrapper. "buildScripts": { "useRustcWrapper": false diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/tidy.rs b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/tidy.rs index 58099a58d..24e68eca6 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/tidy.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/tidy.rs @@ -177,6 +177,7 @@ fn check_licenses() { let sh = &Shell::new().unwrap(); let expected = " +(MIT OR Apache-2.0) AND Unicode-DFS-2016 0BSD OR MIT OR Apache-2.0 Apache-2.0 Apache-2.0 OR BSL-1.0 |