Skip to content

Commit bb9726b

Browse files
committed
Inline Deps::read_deps.
It's very hot in incremental builds.
1 parent 8392220 commit bb9726b

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/dep_graph

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/dep_graph/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ impl Deps for DepsType {
3737
})
3838
}
3939

40+
#[inline]
4041
fn read_deps<OP>(op: OP)
4142
where
4243
OP: for<'a> FnOnce(TaskDepsRef<'a>),

0 commit comments

Comments
 (0)