We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
inspect
is_some
1 parent f3b0a0e commit 6f0dc94Copy full SHA for 6f0dc94
1 file changed
compiler/rustc_middle/src/dep_graph/graph.rs
@@ -214,11 +214,11 @@ impl DepGraph {
214
}
215
216
pub fn assert_eval_always(&self) {
217
- self.data.as_ref().inspect(|_| {
+ if self.data.is_some() {
218
read_deps(|deps| {
219
assert_matches!(deps, TaskDepsRef::EvalAlways, "expected eval always context")
220
});
221
- });
+ }
222
223
224
pub fn with_ignore<OP, R>(&self, op: OP) -> R
0 commit comments