about summary refs log tree commit diff
path: root/compiler/rustc_session/src/utils.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2022-04-19 10:43:09 +0200
committerMichael Woerister <michaelwoerister@posteo>2022-04-19 10:43:20 +0200
commitc0be61972461458ac28195e2034fa6e3d775fcf3 (patch)
treea577e35b08474e047f8b61e9449cdfd943f8d0ca /compiler/rustc_session/src/utils.rs
parente2661bac6d8ae6b9e2a26cd08e9c087ab59e1357 (diff)
downloadrust-c0be61972461458ac28195e2034fa6e3d775fcf3.tar.gz
rust-c0be61972461458ac28195e2034fa6e3d775fcf3.zip
incr. comp.: Don't export impl_stable_hash_via_hash!() and warn about using it.
Diffstat (limited to 'compiler/rustc_session/src/utils.rs')
-rw-r--r--compiler/rustc_session/src/utils.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_session/src/utils.rs b/compiler/rustc_session/src/utils.rs
index 9a286d94ab8..8064c217457 100644
--- a/compiler/rustc_session/src/utils.rs
+++ b/compiler/rustc_session/src/utils.rs
@@ -18,6 +18,7 @@ impl Session {
 }
 
 #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Encodable, Decodable)]
+#[derive(HashStable_Generic)]
 pub enum NativeLibKind {
     /// Static library (e.g. `libfoo.a` on Linux or `foo.lib` on Windows/MSVC)
     Static {
@@ -57,9 +58,8 @@ impl NativeLibKind {
     }
 }
 
-rustc_data_structures::impl_stable_hash_via_hash!(NativeLibKind);
-
 #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Encodable, Decodable)]
+#[derive(HashStable_Generic)]
 pub struct NativeLib {
     pub name: String,
     pub new_name: Option<String>,
@@ -73,8 +73,6 @@ impl NativeLib {
     }
 }
 
-rustc_data_structures::impl_stable_hash_via_hash!(NativeLib);
-
 /// A path that has been canonicalized along with its original, non-canonicalized form
 #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
 pub struct CanonicalizedPath {