diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-01 22:26:03 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-09 20:21:58 -0500 |
| commit | 7208bdee33460b9915e6b389b236d231d2ca3ffc (patch) | |
| tree | 5baa51addced06e641d6e1c12d16cd7f2251597b /compiler/rustc_query_impl/src | |
| parent | b164dbc2715aa15be5c9f363a00d71e0847b2e77 (diff) | |
| download | rust-7208bdee33460b9915e6b389b236d231d2ca3ffc.tar.gz rust-7208bdee33460b9915e6b389b236d231d2ca3ffc.zip | |
Remove `cache_on_disk` from `QueryVTable`
This is not only simpler, but removes a generic function and unwrap. I have hope it will see compile time and bootstrap time improvements.
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 48539d580c7..4ff3917e113 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -442,8 +442,7 @@ macro_rules! define_queries { hash_result: hash_result!([$($modifiers)*]), handle_cycle_error: handle_cycle_error!([$($modifiers)*]), compute, - cache_on_disk, - try_load_from_disk: Self::TRY_LOAD_FROM_DISK, + try_load_from_disk: if cache_on_disk { Self::TRY_LOAD_FROM_DISK } else { None }, } } |
