From bb9726b845f2b7942005b9248f68c76a1c997c92 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 9 Oct 2025 07:52:00 +1100 Subject: [PATCH] Inline `Deps::read_deps`. It's very hot in incremental builds. --- compiler/rustc_middle/src/dep_graph/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_middle/src/dep_graph/mod.rs b/compiler/rustc_middle/src/dep_graph/mod.rs index 781e3e442e64c..40eab0a3ec99f 100644 --- a/compiler/rustc_middle/src/dep_graph/mod.rs +++ b/compiler/rustc_middle/src/dep_graph/mod.rs @@ -37,6 +37,7 @@ impl Deps for DepsType { }) } + #[inline] fn read_deps(op: OP) where OP: for<'a> FnOnce(TaskDepsRef<'a>),