summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/query
AgeCommit message (Collapse)AuthorLines
2021-07-23Encode SourceFile source crate as StableCrateId in incr. comp. OnDiskCache.Michael Woerister-5/+33
2021-07-23Access stable_crate_id directly.Camille GILLOT-2/+1
2021-07-23Do not store crate in latest_foreign_def_path_hashes.Camille GILLOT-7/+0
2021-07-23Encode 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
2021-02-19Move the query system to rustc_query_impl.Camille GILLOT-1616/+18
2021-02-19Introduce a QueryEngine trait object.Camille GILLOT-51/+89
2021-02-19Make encode_query_results more generic.Camille GILLOT-7/+9
2021-02-19Move query names and Providers to parent module.Camille GILLOT-71/+65
2021-02-19Wrap QueryDescription into a macro.Camille GILLOT-3/+13
2021-02-19Split DepKindStruct in two.Camille GILLOT-2/+142
2021-02-19Use QueryCtxt in DepKindStruct.Camille GILLOT-2/+2
2021-02-19Use a QueryContext for try_mark_green.Camille GILLOT-1/+95
2021-02-19Select caching strategy per query.Camille GILLOT-70/+1
The per-Key choice was not used.
2021-02-19Move definition of callbacks to parent module.Camille GILLOT-83/+88
2021-02-19Move handle_deadlock where it is used.Camille GILLOT-29/+1
2021-02-19Move try_load_from_on_disk_cache to the QueryContext.Camille GILLOT-1/+10
2021-02-19Move try_print_query_stack to rustc_interface.Camille GILLOT-48/+38
2021-02-19Make alloc_self_profile_query_strings a standalone function.Camille GILLOT-37/+40
2021-02-19Make QueryEngine opaque to TyCtxt.Camille GILLOT-34/+62