about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-06-19 19:22:14 -0500
committerJeremy Fitzhardinge <jsgf@fb.com>2021-06-21 17:22:35 -0700
commit99f652ff2247f21e3842f312ec0e8112774ebef0 (patch)
tree1726a2cab9783c4a6909e2c61a86f0efc5a05c84 /compiler/rustc_interface/src
parentf1f7f2f508b78defcf9f22f1c35342c27765a1f0 (diff)
downloadrust-99f652ff2247f21e3842f312ec0e8112774ebef0.tar.gz
rust-99f652ff2247f21e3842f312ec0e8112774ebef0.zip
Only hash OutputTypes keys in non-crate-hash mode
This effectively turns OutputTypes into a hybrid where keys (OutputType)
are TRACKED and the values (optional paths) are TRACKED_NO_CRATE_HASH.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 26a7dd0745c..52b3076a443 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -160,9 +160,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_same_hash(&v1, &v2);
-    assert_same_hash(&v1, &v3);
-    assert_same_hash(&v2, &v3);
+    assert_non_crate_hash_different(&v1, &v2);
+    assert_non_crate_hash_different(&v1, &v3);
+    assert_non_crate_hash_different(&v2, &v3);
 }
 
 #[test]