From fdde4c8e2b1d85fb7e6214e64f2db615ba13b6fd Mon Sep 17 00:00:00 2001 From: LeSeulArtichaut Date: Thu, 17 Dec 2020 21:12:17 +0100 Subject: [PATCH] Inline `DebruijnIndex::hash_stable` --- compiler/rustc_type_ir/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_type_ir/src/lib.rs b/compiler/rustc_type_ir/src/lib.rs index 37abb4496ac3f..ec5a18ede19ca 100644 --- a/compiler/rustc_type_ir/src/lib.rs +++ b/compiler/rustc_type_ir/src/lib.rs @@ -198,6 +198,7 @@ impl DebruijnIndex { } impl HashStable for DebruijnIndex { + #[inline] fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) { self.as_u32().hash_stable(ctx, hasher); }