From 073d99b25d2e656ea053ab8dae03ea921508da76 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Tue, 18 Apr 2023 14:13:19 -0400 Subject: Add #[inline] to some new functions Co-authored-by: Camille Gillot --- compiler/rustc_span/src/def_id.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_span') diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index f05328ac1b4..6004009c6ff 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -186,6 +186,7 @@ impl StableCrateId { StableCrateId(hasher.finish()) } + #[inline] pub fn as_u64(self) -> u64 { self.0.as_u64() } -- cgit 1.4.1-3-g733a5