Skip to content

Commit 6f0dc94

Browse files
committed
inspect -> is_some
1 parent f3b0a0e commit 6f0dc94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/rustc_middle/src/dep_graph

compiler/rustc_middle/src/dep_graph/graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ impl DepGraph {
214214
}
215215

216216
pub fn assert_eval_always(&self) {
217-
self.data.as_ref().inspect(|_| {
217+
if self.data.is_some() {
218218
read_deps(|deps| {
219219
assert_matches!(deps, TaskDepsRef::EvalAlways, "expected eval always context")
220220
});
221-
});
221+
}
222222
}
223223

224224
pub fn with_ignore<OP, R>(&self, op: OP) -> R

0 commit comments

Comments
 (0)