});
impl_stable_hash_for!(struct hir::MethodSig {
- unsafety,
- constness,
- abi,
+ header,
decl
});
span
});
+impl_stable_hash_for!(struct hir::FnHeader {
+ unsafety,
+ constness,
+ asyncness,
+ abi
+});
+
impl<'a> HashStable<StableHashingContext<'a>> for hir::Ty {
fn hash_stable<W: StableHasherResult>(&self,
hcx: &mut StableHashingContext<'a>,
ItemUse(path, use_kind),
ItemStatic(ty, mutability, body_id),
ItemConst(ty, body_id),
- ItemFn(fn_decl, unsafety, constness, abi, generics, body_id),
+ ItemFn(fn_decl, header, generics, body_id),
ItemMod(module),
ItemForeignMod(foreign_mod),
ItemGlobalAsm(global_asm),
Normal
});
+impl_stable_hash_for!(enum hir::IsAsync {
+ Async,
+ NotAsync
+});
impl_stable_hash_for!(enum hir::Constness {
Const,