Always cache const eval queries
This commit is contained in:
parent
c160bf3c3e
commit
40629ef827
1 changed files with 2 additions and 8 deletions
|
@ -716,10 +716,7 @@ rustc_queries! {
|
|||
"const-evaluating + checking `{}`",
|
||||
key.value.display(tcx)
|
||||
}
|
||||
cache_on_disk_if(_, opt_result) {
|
||||
// Only store results without errors
|
||||
opt_result.map_or(true, |r| r.is_ok())
|
||||
}
|
||||
cache_on_disk_if { true }
|
||||
}
|
||||
|
||||
/// Evaluates const items or anonymous constants
|
||||
|
@ -734,10 +731,7 @@ rustc_queries! {
|
|||
"simplifying constant for the type system `{}`",
|
||||
key.value.display(tcx)
|
||||
}
|
||||
cache_on_disk_if(_, opt_result) {
|
||||
// Only store results without errors
|
||||
opt_result.map_or(true, |r| r.is_ok())
|
||||
}
|
||||
cache_on_disk_if { true }
|
||||
}
|
||||
|
||||
/// Destructure a constant ADT or array into its variant index and its
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue