Cache eval_to_allocation_raw
on disk
This commit is contained in:
parent
70148d7b31
commit
c160bf3c3e
2 changed files with 5 additions and 1 deletions
|
@ -716,6 +716,10 @@ 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())
|
||||
}
|
||||
}
|
||||
|
||||
/// Evaluates const items or anonymous constants
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue