Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1650 from Xanewok/ipc-feature-build-fix
Browse files Browse the repository at this point in the history
Fix and check the build with ipc feature enabled
  • Loading branch information
Xanewok authored Mar 7, 2020
2 parents fe46c95 + fab8edc commit 521498c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ jobs:
rls-vfs: []
".":
- test_name: test_tooltip_std
args: --ignored
test_args: --ignored
# Test also the IPC feature build
- args: --features ipc
2 changes: 1 addition & 1 deletion ci/azure-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
displayName: Run tests - ${{ crate.key }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
- ${{ each extra in crate.value }}:
- script: cargo test -v ${{ extra.test_name }} -- ${{ extra.args }}
- script: cargo test -v ${{ extra.args }} ${{ extra.test_name }} -- ${{ extra.test_args }}
displayName: Run tests - ${{ crate.key }} - ${{ extra.test_name }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
1 change: 1 addition & 0 deletions rls-rustc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ log = "0.4"
rand = "0.7"
clippy_lints = { git = "https://github.com/rust-lang/rust-clippy", rev = "8b7f7e667268921c278af94ae30a61e87a22b22b", optional = true }
tokio = { version = "0.1", optional = true }
failure = { version = "0.1" }
futures = { version = "0.1", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
rls-data = { version = "0.19", optional = true }
Expand Down
1 change: 1 addition & 0 deletions rls-rustc/src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
use std::io;
use std::path::{Path, PathBuf};

use failure::Fail;
use futures::Future;

use rls_ipc::client::{Client as JointClient, RpcChannel, RpcError};
Expand Down
2 changes: 1 addition & 1 deletion rls/src/build/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub struct CompilationResult {
fn run_out_of_process(
changed: HashMap<PathBuf, String>,
args: &[String],
envs: &HashMap<String, Option<OsString>>,
envs: &BTreeMap<String, Option<OsString>>,
clippy_preference: ClippyPreference,
) -> Result<CompilationResult, ()> {
let analysis = Arc::default();
Expand Down

0 comments on commit 521498c

Please sign in to comment.