bors
28d0e75269
Auto merge of #90210 - cjgillot:qarray2, r=Mark-Simulacrum
...
Build the query vtable directly.
Continuation of https://github.com/rust-lang/rust/pull/89978 .
This shrinks the query interface and attempts to reduce the amount of function pointer calls.
2021-10-25 01:10:50 +00:00
Matthias Krüger
87822b27ee
Rollup merge of #89558 - lcnr:query-stable-lint, r=estebank
...
Add rustc lint, warning when iterating over hashmaps
r? rust-lang/wg-incr-comp
2021-10-24 15:48:42 +02:00
Camille GILLOT
7c0920f5fb
Build the query vtable directly.
2021-10-23 16:59:19 +02:00
Camille GILLOT
bd5c107672
Build jump table at runtime.
2021-10-20 18:32:29 +02:00
Camille GILLOT
602d3cbce3
Invoke callbacks from rustc_middle.
2021-10-20 18:29:33 +02:00
Camille GILLOT
b09de95fab
Merge two query callbacks arrays.
2021-10-20 18:29:27 +02:00
lcnr
00e5abe9b6
allow potential_query_instability
everywhere
2021-10-15 10:58:18 +02:00
Camille GILLOT
02025d86ac
Remove re-export.
2021-10-03 16:08:54 +02:00
Noah Lev
cd0fc444fb
Note that type aliases cannot be recursive
2021-08-27 14:50:51 -07:00
Camille GILLOT
81241cbf3a
Move OnDiskCache to rustc_query_impl.
2021-07-18 11:14:07 +02:00
bors
12d0849f9d
Auto merge of #85154 - cjgillot:lessfn, r=bjorn3
...
Reduce amount of function pointers in query invocation.
r? `@ghost`
2021-06-15 14:52:58 +00:00
bjorn3
312f964478
Remove unused feature gates
2021-05-31 13:55:43 +02:00
Camille GILLOT
8ed82ebb2a
Only test if key is local.
2021-05-30 15:16:41 +02:00
Camille GILLOT
c2c59ae304
Move key recovering into force_query.
2021-05-15 10:20:56 +02:00
bjorn3
cd7a011f37
Don't duplicate the extern providers once for each crate
2021-03-29 18:03:07 +02:00
Camille GILLOT
a87de890fd
Move print_query_stack to rustc_query_system.
2021-02-20 23:40:56 +01:00
Camille GILLOT
c26d965714
Move report_cycle to rustc_query_system.
...
The call to `ty::print::with_forced_impl_filename_line`
is done when constructing the description,
at the construction of the QueryStackFrame.
2021-02-20 23:36:31 +01:00
Camille GILLOT
3897395787
Move Query to rustc_query_system.
...
Rename it to QueryStackFrame and document a bit.
2021-02-20 22:53:47 +01:00
Camille GILLOT
0144d6a3b7
Do not hold query key in Query.
2021-02-20 22:53:46 +01:00
Camille GILLOT
4581d16bcb
Move the query system to rustc_query_impl.
2021-02-19 17:51:58 +01:00