incr. comp.: Don't export impl_stable_hash_via_hash!() and warn about using it.

This commit is contained in:
Michael Woerister
2022-04-19 10:43:09 +02:00
parent e2661bac6d
commit c0be619724
8 changed files with 38 additions and 37 deletions

View File

@@ -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 {