diff options
| author | Eric Huss <eric@huss.org> | 2022-01-30 08:37:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-30 08:37:46 -0800 |
| commit | 0610d4fa66f95fa3a4a7af86239976ed668bab0e (patch) | |
| tree | 077c6754dc195449445e9089af4f2fccd3de9667 /compiler/rustc_middle/src/query | |
| parent | 7cc28c128be0363d83accf318b87b40ba6168384 (diff) | |
| parent | 5b3462c556932234c6bae24c6f90c55a463f23c3 (diff) | |
| download | rust-0610d4fa66f95fa3a4a7af86239976ed668bab0e.tar.gz rust-0610d4fa66f95fa3a4a7af86239976ed668bab0e.zip | |
Rollup merge of #92887 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum
Bootstrap compiler update r? ``@Mark-Simulacrum``
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 715a1fa25a1..54391bd649e 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -784,24 +784,11 @@ rustc_queries! { desc { |tcx| "type-checking `{}`", tcx.def_path_str(key.to_def_id()) } cache_on_disk_if { true } load_cached(tcx, id) { - #[cfg(bootstrap)] - { - match match tcx.on_disk_cache().as_ref() { - Some(c) => c.try_load_query_result(*tcx, id), - None => None, - } { - Some(x) => Some(&*tcx.arena.alloc(x)), - None => None, - } - } - #[cfg(not(bootstrap))] - { - let typeck_results: Option<ty::TypeckResults<'tcx>> = tcx - .on_disk_cache().as_ref() - .and_then(|c| c.try_load_query_result(*tcx, id)); + let typeck_results: Option<ty::TypeckResults<'tcx>> = tcx + .on_disk_cache().as_ref() + .and_then(|c| c.try_load_query_result(*tcx, id)); - typeck_results.map(|x| &*tcx.arena.alloc(x)) - } + typeck_results.map(|x| &*tcx.arena.alloc(x)) } } |
