From 632f21a17a194f9be51e0d80664cb38ade168452 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Wed, 19 Dec 2018 01:55:59 +0100 Subject: [PATCH] Disable `all_targets` in tooltip test runs More details here: https://github.com/rust-lang/rls/issues/1151#issuecomment-448415490 --- src/actions/hover.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/actions/hover.rs b/src/actions/hover.rs index ab966b5953b..7ed49cd4162 100644 --- a/src/actions/hover.rs +++ b/src/actions/hover.rs @@ -1199,6 +1199,10 @@ pub mod test { let temp_dir = tempfile::tempdir().unwrap().into_path(); config.target_dir = config::Inferrable::Specified(Some(temp_dir.clone())); config.racer_completion = racer_fallback_completion; + // FIXME(#1195): This led to spurious failures on macOS; possibly + // because regular build and #[cfg(test)] did race or rls-analysis + // didn't lower them properly? + config.all_targets = false; let config = Arc::new(Mutex::new(config)); let analysis = Arc::new(analysis::AnalysisHost::new(analysis::Target::Debug));