]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_macros/src/hash_stable.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_macros / src / hash_stable.rs
index 30569f20793fbae6431915bd63d0c43074690f39..b916113a0e551f8e50df375831751344139f0fdd 100644 (file)
@@ -54,7 +54,7 @@ pub fn hash_stable_generic_derive(mut s: synstructure::Structure<'_>) -> proc_ma
             quote! {}
         } else if let Some(project) = attrs.project {
             quote! {
-                &#bi.#project.hash_stable(__hcx, __hasher);
+                (&#bi.#project).hash_stable(__hcx, __hasher);
             }
         } else {
             quote! {
@@ -96,7 +96,7 @@ pub fn hash_stable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::To
             quote! {}
         } else if let Some(project) = attrs.project {
             quote! {
-                &#bi.#project.hash_stable(__hcx, __hasher);
+                (&#bi.#project).hash_stable(__hcx, __hasher);
             }
         } else {
             quote! {