Skip to content

Commit 64b6aa7

Browse files
committed
Add #[inline] to derive hash_stable_eq
1 parent 57231fd commit 64b6aa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_macros/src/hash_stable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ pub fn hash_stable_eq_derive(mut s: synstructure::Structure<'_>) -> proc_macro2:
161161
s.bound_impl(
162162
quote!(::rustc_data_structures::stable_hasher::HashStableEq),
163163
quote! {
164+
#[inline]
164165
fn hash_stable_eq(&self, other: &Self) -> bool {
165166
match (self, other) {
166167
#eq_body

0 commit comments

Comments
 (0)