about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/query/mod.rs
AgeCommit message (Collapse)AuthorLines
2021-07-18Move OnDiskCache to rustc_query_impl.Camille GILLOT-329/+0
2021-07-06Revert "Revert "Merge CrateDisambiguator into StableCrateId""bjorn3-1/+0
This reverts commit 8176ab8bc18fdd7d3c2cf7f720c51166364c33a3.
2021-07-04Combine individual limit queries into single `limits` queryAaron Hill-1/+1
2021-07-04Query-ify global limit attribute handlingAaron Hill-0/+1
2021-06-20Make allocator_kind a query.Camille GILLOT-0/+1
2021-06-07Revert "Merge CrateDisambiguator into StableCrateId"bjorn3-0/+1
This reverts commit d0ec85d3fb6d322496cb8f4bc1c21e19f23284ad.
2021-06-01Remove StableVec.Camille GILLOT-1/+0
2021-06-01Revert "Reduce the amount of untracked state in TyCtxt"Camille Gillot-1/+1
2021-05-30Make allocator_kind a query.Camille GILLOT-0/+1
2021-05-30Remove StableVec.Camille GILLOT-1/+0
2021-05-30Merge CrateDisambiguator into StableCrateIdbjorn3-1/+0
2021-05-22Make THIR building a stealable queryLeSeulArtichaut-0/+1
2021-05-11improve diagnosts for GATsb-naber-1/+3
2021-05-11Rollup merge of #84777 - jyn514:rustdoc-parallel, r=Mark-SimulacrumYuki Okushi-0/+1
Apply `--cfg parallel_compiler` when documenting This also reverts commit 9823c2cc700fea541bf2670fcee93af662b63022 working around the bug. Fixes https://github.com/rust-lang/rust/issues/82301.
2021-05-01Apply `--cfg parallel_compiler` when documentingJoshua Nelson-0/+1
This also reverts commit 9823c2cc700fea541bf2670fcee93af662b63022 working around the bug.
2021-04-29Split crate_hash from index_hir.Camille GILLOT-1/+0
2021-03-21Improve error message for unassigned query providerRich Kadel-2/+5
Fixes: 83122
2021-03-12Implement valtreeOli Scherer-1/+1
valtree is a version of constants that is inherently safe to be used within types. This is in contrast to ty::Const which can have different representations of the same value. These representation differences can show up in hashing or equality comparisons, breaking type equality of otherwise equal types. valtrees do not have this problem.
2021-02-19Workaround rustdoc not honouring cfg(parallel_compiler).Camille GILLOT-1/+0
2021-02-19Move the query system to rustc_query_impl.Camille GILLOT-28/+16
2021-02-19Introduce a QueryEngine trait object.Camille GILLOT-3/+36
2021-02-19Move query names and Providers to parent module.Camille GILLOT-1/+65
2021-02-19Split DepKindStruct in two.Camille GILLOT-0/+1
2021-02-19Use a QueryContext for try_mark_green.Camille GILLOT-0/+5
2021-02-19Move definition of callbacks to parent module.Camille GILLOT-0/+88
2021-02-19Move handle_deadlock where it is used.Camille GILLOT-4/+0
2021-02-19Make alloc_self_profile_query_strings a standalone function.Camille GILLOT-1/+1
2021-02-19Make QueryEngine opaque to TyCtxt.Camille GILLOT-0/+1
2021-02-19Wrap TyCtxt inside a QueryCtxt for queries.Camille GILLOT-0/+1
2021-02-08Switch query descriptions to just StringMark Rousskov-1/+0
In practice we never used the borrowed variant anyway.
2021-01-23Iterate to encode def_kind.Camille GILLOT-0/+16
2021-01-08Make force_from_dep_node a function pointer.Camille GILLOT-107/+1
2021-01-08Make try_load_from_on_disk_cache a function pointer.Camille GILLOT-26/+0
2020-12-04Properly re-use def path hash in incremental modeAaron Hill-1/+1
Fixes #79661 In incremental compilation mode, we update a `DefPathHash -> DefId` mapping every time we create a `DepNode` for a foreign `DefId`. This mapping is written out to the on-disk incremental cache, and is read by the next compilation session to allow us to lazily decode `DefId`s. When we decode a `DepNode` from the current incremental cache, we need to ensure that any previously-recorded `DefPathHash -> DefId` mapping gets recorded in the new mapping that we write out. However, PR #74967 didn't do this in all cases, leading to us being unable to decode a `DefPathHash` in certain circumstances. This PR refactors some of the code around `DepNode` deserialization to prevent this kind of mistake from happening again.
2020-11-14Move Steal to rustc_data_structures.Camille GILLOT-1/+1
2020-10-22Retire rustc_dep_node_try_load_from_on_disk_cache.Camille GILLOT-1/+23
2020-10-22Retire rustc_dep_node_force.Camille GILLOT-13/+36
2020-10-22Remove unused ProfileCategory.Camille GILLOT-1/+0
2020-09-19Unify the names of const eval queries and their return typesOliver Scherer-1/+1
2020-08-30mv compiler to compiler/mark-0/+220