Michael Woerister
021c0520e3
Fix up comment about OnDiskCache::foreign_expn_data.
2021-09-14 13:56:33 +02:00
Michael Woerister
2b60338ee9
Make DefPathHash->DefId panic for if the mapping fails.
...
We only use this mapping for cases where we know that it must succeed.
Letting it panic otherwise makes it harder to use the API in unsupported
ways.
2021-09-14 13:56:33 +02:00
Michael Woerister
5445715c20
Remove RawDefId tracking infrastructure from incr. comp. framework.
...
This infrastructure is obsolete now with the new encoding scheme for
the DefPathHash->DefIndex maps in crate metadata.
2021-09-14 13:56:33 +02:00
Michael Woerister
960893c50a
Store DefPathHash->DefIndex map in on-disk-hash-table format in crate metadata.
...
This encoding allows for random access without an expensive upfront decoding
state which in turn allows simplifying the DefPathIndex lookup logic without
regressing performance.
2021-09-14 13:56:33 +02:00
Manish Goregaokar
f5ac5cadd3
Rollup merge of #88709 - BoxyUwU:thir-abstract-const, r=lcnr
...
generic_const_exprs: use thir for abstract consts instead of mir
Changes `AbstractConst` building to use `thir` instead of `mir` so that there's less chance of consts unifying when they shouldn't because lowering to mir dropped information (see `abstract-consts-as-cast-5.rs` test)
r? `@lcnr`
2021-09-12 03:44:56 -07:00
Camille GILLOT
940fa9251e
Rename decode to data_untracked.
2021-09-10 20:18:22 +02:00
Camille GILLOT
b19ae20aad
Track span dependency using a callback.
2021-09-10 20:18:18 +02:00
Camille GILLOT
e85ddeb474
Encode spans relative to their parent.
2021-09-10 20:18:11 +02:00
Camille GILLOT
00485e0c0e
Keep a parent LocalDefId in SpanData.
2021-09-10 20:17:33 +02:00
Ellen
406d2ab95d
rename mir -> thir around abstract consts
2021-09-09 01:32:03 +01:00
Camille GILLOT
bcefd487c3
Comment drop_serialized_data.
2021-08-28 21:49:51 +02:00
Camille GILLOT
98007e2ce6
Drop the query result memmap before serializing it back.
2021-08-28 21:45:02 +02:00
Camille GILLOT
4afdeaaabd
Mmap the incremental data instead of reading it.
2021-08-28 21:45:02 +02:00
Aaron Hill
e6a5231238
Create QuerySideEffects
and use it for diagnostics
2021-07-25 20:27:58 -05:00
Camille GILLOT
81241cbf3a
Move OnDiskCache to rustc_query_impl.
2021-07-18 11:14:07 +02:00