about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/query
AgeCommit message (Collapse)AuthorLines
2021-07-18Move OnDiskCache to rustc_query_impl.Camille GILLOT-1542/+0
2021-07-17Pass ExpnData by reference.Camille GILLOT-1/+1
2021-07-17Always hash spans in expn.Camille GILLOT-1/+1
2021-07-17Encode ExpnId using ExpnHash for incr. comp.Camille GILLOT-34/+59
2021-07-17Choose encoding format in caller code.Camille GILLOT-10/+13
2021-07-17Make the CrateNum part of the ExpnId.Camille GILLOT-3/+9
2021-07-15Separate encoding paths.Camille GILLOT-10/+4
The two paths will be modified independently in the next few commits.
2021-07-13Cache expansion hash.Camille GILLOT-4/+4
2021-07-06Make resolutions a query.Camille GILLOT-2/+8
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-07-01Rename all_crate_nums query to crates and remove useless wrapperbjorn3-1/+1
2021-06-28Auto merge of #85909 - cjgillot:alloc-kind-query, r=Aaron1011bors-0/+1
Make allocator_kind a query. Part of #85153 r? `@Aaron1011`
2021-06-21Encode SourceFile source crate as StableCrateId in incr. comp. OnDiskCache.Michael Woerister-5/+33
2021-06-20Make allocator_kind a query.Camille GILLOT-0/+1
2021-06-09Access stable_crate_id directly.Camille GILLOT-2/+1
2021-06-09Do not store crate in latest_foreign_def_path_hashes.Camille GILLOT-7/+0
2021-06-09Encode CrateNum using the StableCrateId for incr. comp.Camille GILLOT-64/+37
2021-06-08Do not require the DefPathTable to construct the on-disk cache.Camille GILLOT-21/+3
2021-06-07Revert "Merge CrateDisambiguator into StableCrateId"bjorn3-10/+14
This reverts commit d0ec85d3fb6d322496cb8f4bc1c21e19f23284ad.
2021-06-02Auto merge of #85905 - cjgillot:one-trait-map, r=Aaron1011bors-1/+0
Only compute the trait map once Part of #85153 r? `@Aaron1011`
2021-06-01Auto merge of #85829 - bjorn3:simplify_crate_num, r=jackh726bors-2/+1
Remove CrateNum::ReservedForIncrCompCache It's only use is easily replaceable with `Option<CrateNum>`.
2021-06-01Remove StableVec.Camille GILLOT-1/+0
2021-06-01Revert "Reduce the amount of untracked state in TyCtxt"Camille Gillot-6/+2
2021-05-30Make allocator_kind a query.Camille GILLOT-0/+1
2021-05-30Remove StableVec.Camille GILLOT-1/+0
2021-05-30Make resolutions a query.Camille GILLOT-1/+5
2021-05-30Remove CrateNum::ReservedForIncrCompCachebjorn3-2/+1
2021-05-30Merge CrateDisambiguator into StableCrateIdbjorn3-14/+10
2021-05-22Make THIR building a stealable queryLeSeulArtichaut-0/+1
2021-05-12Use () for lang items.Camille GILLOT-1/+1
2021-05-12Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillotbors-13/+7
rustc_driver cleanup Best reviewed one commit at a time.
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-02Let load_query_result_cache take a &DefPathTablebjorn3-13/+7
This allows removing a confusing mem::replace in create_global_ctxt
2021-05-01Auto merge of #83114 - cjgillot:hop, r=eddybbors-1/+0
Move HIR parenting information out of hir_owner Split out of #82681. The parent of a HIR node and its content are currently bundled together, but are rarely used together. This PR separates both information in two distinct queries for HIR owners. This reduces incremental invalidation for HIR items that appear within a function body when this body (and the local ids) changes.
2021-05-01Apply `--cfg parallel_compiler` when documentingJoshua Nelson-0/+1
This also reverts commit 9823c2cc700fea541bf2670fcee93af662b63022 working around the bug.
2021-04-29Move iter_results to dyn FnMut rather than a genericMark Rousskov-14/+21
This means that we're no longer generating the iteration/locking code for each invocation site of iter_results, rather just once per query. This is a 15% win in instruction counts when compiling the rustc_query_impl crate.
2021-04-29Split crate_hash from index_hir.Camille GILLOT-1/+0
2021-03-27lazily calls some fnsklensy-1/+1
2021-03-22Auto merge of #83376 - Dylan-DPC:rollup-s2fsjwj, r=Dylan-DPCbors-2/+5
Rollup of 7 pull requests Successful merges: - #82374 (Add license metadata for std dependencies) - #82683 (Document panicking cases for integer division and remainder) - #83272 (Clarify non-exact length in the Iterator::take documentation) - #83338 (Fix test for #82270) - #83351 (post-drop-elab check-const: explain why we still check qualifs) - #83367 (Improve error message for unassigned query provider) - #83372 (SplitInclusive is public API) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-03-21Improve error message for unassigned query providerRich Kadel-2/+5
Fixes: 83122
2021-03-19Remove FingerprintEncoder/Decoder.Camille GILLOT-13/+0
2021-03-19Move raw bytes handling to Encoder/Decoder.Camille GILLOT-0/+1
2021-03-18Move IntEncodedWithFixedSize to rustc_serialize.Camille GILLOT-37/+1
2021-03-16Auto merge of #82936 - oli-obk:valtree, r=RalfJung,lcnr,matthewjasperbors-1/+1
Implement (but don't use) valtree and refactor in preparation of use This PR does not cause any functional change. It refactors various things that are needed to make valtrees possible. This refactoring got big enough that I decided I'd want it reviewed as a PR instead of trying to make one huge PR with all the changes. cc `@rust-lang/wg-const-eval` on the following commits: * 2027184 implement valtree * eeecea9 fallible Scalar -> ScalarInt * 042f663 ScalarInt convenience methods cc `@eddyb` on ef04a6d cc `@rust-lang/wg-mir-opt` for cf1700c (`mir::Constant` can now represent either a `ConstValue` or a `ty::Const`, and it is totally possible to have two different representations for the same value)
2021-03-14Don't encode file information for span with a dummy locationAaron Hill-3/+3
Fixes #83112 The location information for a dummy span isn't real, so don't encode it. This brings the incr comp cache code into line with the Span `StableHash` impl, which doesn't hash the location information for dummy spans. Previously, we would attempt to load the 'original' file from a dummy span - if the file id changed (e.g. due to being moved on disk), we would get an ICE, since the Span was still valid due to its hash being unchanged.
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