From 077540cedf836b3c6e17db39de21e2278bae90fc Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Thu, 4 Jan 2024 13:51:06 +0100 Subject: Address review comments and add back some #[inline] attrs from removed commits. --- compiler/rustc_data_structures/src/unord.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_data_structures/src') diff --git a/compiler/rustc_data_structures/src/unord.rs b/compiler/rustc_data_structures/src/unord.rs index 476ea432a0c..bd4dff6f62f 100644 --- a/compiler/rustc_data_structures/src/unord.rs +++ b/compiler/rustc_data_structures/src/unord.rs @@ -159,6 +159,7 @@ impl> UnordItems { self.collect_stable_ord_by_key(project_to_key) } + #[inline] pub fn collect_sorted(self, hcx: &HCX, cache_sort_key: bool) -> C where T: ToStableHashKey, @@ -178,6 +179,7 @@ impl> UnordItems { items } + #[inline] pub fn collect_stable_ord_by_key(self, project_to_key: P) -> C where K: StableCompare, -- cgit 1.4.1-3-g733a5