diff options
| author | hi-rustin <rustin.liu@gmail.com> | 2021-06-18 15:09:40 +0800 |
|---|---|---|
| committer | hi-rustin <rustin.liu@gmail.com> | 2021-06-18 15:09:40 +0800 |
| commit | 88abd7d81d585ba31cab1ca404a5ed6b44511f98 (patch) | |
| tree | 55606dc550df3ae61e23c55d6d8ca8a74ba1e461 /compiler/rustc_macros/src | |
| parent | 1a462831ad4c6966f3baabe5cbf21cb9f330ffc4 (diff) | |
| download | rust-88abd7d81d585ba31cab1ca404a5ed6b44511f98.tar.gz rust-88abd7d81d585ba31cab1ca404a5ed6b44511f98.zip | |
Lint for unused borrows as part of UNUSED_MUST_USE
Diffstat (limited to 'compiler/rustc_macros/src')
| -rw-r--r-- | compiler/rustc_macros/src/hash_stable.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_macros/src/hash_stable.rs b/compiler/rustc_macros/src/hash_stable.rs index 30569f20793..b916113a0e5 100644 --- a/compiler/rustc_macros/src/hash_stable.rs +++ b/compiler/rustc_macros/src/hash_stable.rs @@ -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! { |
