Skip to content

Commit 8b7b0a0

Browse files
always cache result from mir_borrowck
1 parent 06eb912 commit 8b7b0a0

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/query/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -836,13 +836,14 @@ rustc_queries! {
836836
/// additional requirements that the closure's creator must verify.
837837
query mir_borrowck(key: LocalDefId) -> &'tcx mir::BorrowCheckResult<'tcx> {
838838
desc { |tcx| "borrow-checking `{}`", tcx.def_path_str(key.to_def_id()) }
839-
cache_on_disk_if(tcx) { tcx.is_typeck_child(key.to_def_id()) }
839+
cache_on_disk_if { true }
840840
}
841841
query mir_borrowck_const_arg(key: (LocalDefId, DefId)) -> &'tcx mir::BorrowCheckResult<'tcx> {
842842
desc {
843843
|tcx| "borrow-checking the const argument`{}`",
844844
tcx.def_path_str(key.0.to_def_id())
845845
}
846+
cache_on_disk_if { true }
846847
}
847848

848849
/// Gets a complete map from all types to their inherent impls.

0 commit comments

Comments
 (0)