}
fn to_debug_str(&self, tcx: TyCtxt<'tcx>) -> String {
- tcx.crate_name(*self).as_str().to_string()
+ tcx.crate_name(*self).to_string()
}
}
/// the need to be mapped or unmapped. (This ensures we can serialize
/// them even in the absence of a tcx.)
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash,
- RustcEncodable, RustcDecodable)]
+ RustcEncodable, RustcDecodable, HashStable)]
pub struct WorkProductId {
hash: Fingerprint
}
}
}
}
-
-impl_stable_hash_for!(struct crate::dep_graph::WorkProductId {
- hash
-});