1
Fork 0

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

@ -1130,6 +1130,7 @@ impl ExternalSource {
pub struct OffsetOverflowError;
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Encodable, Decodable)]
#[derive(HashStable_Generic)]
pub enum SourceFileHashAlgorithm {
Md5,
Sha1,
@ -1149,8 +1150,6 @@ impl FromStr for SourceFileHashAlgorithm {
}
}
rustc_data_structures::impl_stable_hash_via_hash!(SourceFileHashAlgorithm);
/// The hash of the on-disk source file used for debug info.
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
#[derive(HashStable_Generic, Encodable, Decodable)]