diff options
| author | Jeremy Fitzhardinge <jeremy@goop.org> | 2021-06-05 15:43:12 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jsgf@fb.com> | 2021-06-21 17:22:35 -0700 |
| commit | a26d99f348de873e7a7b2b9ab6e78506278c0fee (patch) | |
| tree | c50432ea04c7ffddfc2974f3ea8ccec972310507 /compiler/rustc_interface/src | |
| parent | cef3ab75b12155e0582dd8b7710b7b901215fdd6 (diff) | |
| download | rust-a26d99f348de873e7a7b2b9ab6e78506278c0fee.tar.gz rust-a26d99f348de873e7a7b2b9ab6e78506278c0fee.zip | |
In --emit KIND=PATH options, only hash KIND
The PATH has no material effect on the emitted artifact, and setting the patch via `-o` or `--out-dir` does not affect the hash. Closes https://github.com/rust-lang/rust/issues/86044
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index f486a82ef95..865c281be9c 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -152,9 +152,9 @@ fn test_output_types_tracking_hash_different_paths() { v2.output_types = OutputTypes::new(&[(OutputType::Exe, Some(PathBuf::from("/some/thing")))]); v3.output_types = OutputTypes::new(&[(OutputType::Exe, None)]); - assert_different_hash(&v1, &v2); - assert_different_hash(&v1, &v3); - assert_different_hash(&v2, &v3); + assert_same_hash(&v1, &v2); + assert_same_hash(&v1, &v3); + assert_same_hash(&v2, &v3); } #[test] |
