From 3d07646858698a1d904c63d3ccc4d9c041928ed8 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 17 Oct 2018 12:47:21 -0700 Subject: [PATCH] Add `rustc-workspace-hack` workaround like RLS/Cargo --- Cargo.lock | 7 +++++++ Cargo.toml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 53890b57fe1..b5cb7b5313f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -587,6 +587,11 @@ dependencies = [ "rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "rustc-workspace-hack" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "rustc_version" version = "0.2.3" @@ -615,6 +620,7 @@ dependencies = [ "rustc-ap-rustc_target 272.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-ap-syntax 272.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-ap-syntax_pos 272.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-workspace-hack 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.79 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.79 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)", @@ -917,6 +923,7 @@ dependencies = [ "checksum rustc-hash 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7540fc8b0c49f096ee9c961cda096467dce8084bec6bdca2fc83895fd9b28cb8" "checksum rustc-rayon 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c6d5a683c6ba4ed37959097e88d71c9e8e26659a3cb5be8b389078e7ad45306" "checksum rustc-rayon-core 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "40f06724db71e18d68b3b946fdf890ca8c921d9edccc1404fdfdb537b0d12649" +"checksum rustc-workspace-hack 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc71d2faa173b74b232dedc235e3ee1696581bb132fc116fa3626d6151a1a8fb" "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" "checksum ryu 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7153dd96dade874ab973e098cb62fcdbb89a03682e46b144fd09550998d4a4a7" "checksum scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28" diff --git a/Cargo.toml b/Cargo.toml index e42b25a2191..29e204961d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,6 +53,11 @@ rustc-ap-syntax_pos = "272.0.0" failure = "0.1.1" bytecount = { version = "0.3", features = ["simd-accel"] } +# A noop dependency that changes in the Rust repository, it's a bit of a hack. +# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust` +# for more information. +rustc-workspace-hack = "1.0.0" + [dev-dependencies] assert_cli = "0.6" lazy_static = "1.0.0"