Skip to content

Commit ef2fa8a

Browse files
committed
Assert redundant incremental check
1 parent 783eb8c commit ef2fa8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

compiler/rustc_query_impl/src/plumbing.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ pub(crate) fn promote_from_disk_inner<'tcx, C: QueryCache>(
175175

176176
pub(crate) fn loadable_from_disk<'tcx>(tcx: TyCtxt<'tcx>, id: SerializedDepNodeIndex) -> bool {
177177
if let Some(cache) = tcx.query_system.on_disk_cache.as_ref() {
178-
cache.loadable_from_disk(id)
178+
assert!(cache.loadable_from_disk(id));
179+
true
179180
} else {
180181
false
181182
}

0 commit comments

Comments
 (0)