]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ich/impls_hir.rs
Auto merge of #51727 - varkor:expragain-to-exprcontinue, r=petrochenkov
[rust.git] / src / librustc / ich / impls_hir.rs
index 5c7b235f3853e72c789afb4143ceba2ddb631145..b71b69474a72051efee603b7bc5149a2bf6bf928 100644 (file)
@@ -272,9 +272,7 @@ fn hash_stable<W: StableHasherResult>(&self,
 });
 
 impl_stable_hash_for!(struct hir::MethodSig {
-    unsafety,
-    constness,
-    abi,
+    header,
     decl
 });
 
@@ -285,6 +283,13 @@ fn hash_stable<W: StableHasherResult>(&self,
     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>,
@@ -897,7 +902,7 @@ fn hash_stable<W: StableHasherResult>(&self,
     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),
@@ -1100,6 +1105,10 @@ fn hash_stable<W: StableHasherResult>(&self,
     Normal
 });
 
+impl_stable_hash_for!(enum hir::IsAsync {
+    Async,
+    NotAsync
+});
 
 impl_stable_hash_for!(enum hir::Constness {
     Const,