From 5ccabc829e500388a229547b49fabc6c295b08ec Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 8 Oct 2019 10:13:24 -0700 Subject: [PATCH] Re-enable some MSVC tests. --- .../compiler/context/compilation_files.rs | 2 ++ tests/testsuite/collisions.rs | 6 ++-- tests/testsuite/freshness.rs | 30 +++++++++---------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/cargo/core/compiler/context/compilation_files.rs b/src/cargo/core/compiler/context/compilation_files.rs index 45beb93d985..b048b4b63c2 100644 --- a/src/cargo/core/compiler/context/compilation_files.rs +++ b/src/cargo/core/compiler/context/compilation_files.rs @@ -476,6 +476,8 @@ fn compute_metadata<'a, 'cfg>( // // No metadata for bin because of an issue: // - wasm32 rustc/emcc encodes the `.wasm` name in the `.js` (rust-lang/cargo#4535). + // - msvc: The path to the PDB is embedded in the executable, and we don't + // want the PDB path to include the hash in it. // // Two exceptions: // 1) Upstream dependencies (we aren't exporting + need to resolve name conflict), diff --git a/tests/testsuite/collisions.rs b/tests/testsuite/collisions.rs index 6119a79dd43..46b6a976b7b 100644 --- a/tests/testsuite/collisions.rs +++ b/tests/testsuite/collisions.rs @@ -1,4 +1,3 @@ -#[cfg(not(target_env = "msvc"))] use cargo_test_support::basic_manifest; use cargo_test_support::project; use std::env; @@ -56,7 +55,6 @@ This may become a hard error in the future; see