klensy
7a75ebed09
15221 -> 14956 exports
2022-02-07 22:45:29 +03:00
LegionMammal978
77a0c65264
Remove in_band_lifetimes
from rustc_query_impl
...
See #91867 for more information.
2021-12-14 12:13:07 -05:00
Deadbeef
42963f4d50
Query modifier
2021-12-12 12:35:00 +08:00
bjorn3
f5c3e83013
Avoid a branch on key being local for queries that use the same local and extern providers
2021-10-25 13:36:23 +02:00
Camille GILLOT
138e96b719
Do not require QueryCtxt for cache_on_disk.
2021-10-23 18:12:43 +02:00
Camille GILLOT
7c0920f5fb
Build the query vtable directly.
2021-10-23 16:59:19 +02:00
Camille GILLOT
0a5666b838
Do not depend on the stored value when trying to cache on disk.
2021-10-21 20:00:45 +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
Camille GILLOT
aa404c24dd
Make hash_result an Option.
2021-10-20 18:29:18 +02:00
Mark Rousskov
6f78eed1c7
Query the fingerprint style during key reconstruction
...
Keys can be reconstructed from fingerprints that are not DefPathHash, but then
we cannot extract a DefId from them.
2021-10-06 22:19:48 -04:00
bors
55111d656f
Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister
...
Move ICH to rustc_query_system
Based on https://github.com/rust-lang/rust/pull/89183
The StableHashingContext does not need to be in rustc_middle.
This PR moves it to rustc_query_system. This will avoid a dependency between rustc_ast_lowering and rustc_middle in https://github.com/rust-lang/rust/pull/89124 .
2021-10-05 09:45:11 +00:00
Camille GILLOT
fedd7785fe
Access StableHashingContext in rustc_query_system.
2021-10-03 16:08:55 +02:00
Camille GILLOT
02025d86ac
Remove re-export.
2021-10-03 16:08:54 +02:00
bjorn3
e2d3e09b9c
Prevent macro ambiguity errors
...
The previous macro_rules! parsers failed when an additional modifier was added
with ambiguity errors. The error is pretty unclear as to what exactly the cause
here is, but this change simplifies the argument parsing code such that the
error is avoided.
2021-10-02 13:00:19 -04:00
Alik Aslanyan
9da27f0429
Disable visible path calculation for PrettyPrinter in Ok path of compiler
2021-09-21 00:41:44 +04:00
Noah Lev
d96234bed7
Retrieve DefKind
from HIR map to reduce chance of cycles
...
`tcx.def_kind()` could theoretically invoke another query, which could
cause an infinite query loop. Accessing the HIR map directly makes that
less likely to happen.
I also changed it to use `as_local()` (`tcx.def_kind()` seems to
implicitly call `expect_local()`) and `opt_def_kind()` to reduce the
chance of panicking on valid code.
2021-08-29 19:38:47 -07:00
Noah Lev
cd0fc444fb
Note that type aliases cannot be recursive
2021-08-27 14:50:51 -07:00
Aaron Hill
e6a5231238
Create QuerySideEffects
and use it for diagnostics
2021-07-25 20:27:58 -05:00
Camille GILLOT
5b921505ef
Remove deadlock virtual call.
2021-07-18 11:14:08 +02: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
bors
91ddf3e76a
Auto merge of #85266 - cjgillot:hir-dep-clean, r=michaelwoerister
...
Remove obsolete workaround.
The regression test for #62649 appears to pass even without the workaround.
2021-05-31 10:13:46 +00:00
Camille GILLOT
8ed82ebb2a
Only test if key is local.
2021-05-30 15:16:41 +02:00
Camille GILLOT
fd318a2f9b
Reduce amount of function pointers.
2021-05-30 15:15:22 +02:00
Camille GILLOT
8a2bea931b
Remove obsolete workaround.
2021-05-27 19:37:34 +02:00
Camille GILLOT
c95a5682f7
Remove def_path_str.
2021-05-15 10:37:30 +02:00
Camille GILLOT
c2c59ae304
Move key recovering into force_query.
2021-05-15 10:20:56 +02:00
Joshua Nelson
1da4445109
Apply --cfg parallel_compiler
when documenting
...
This also reverts commit 9823c2cc70
working around the bug.
2021-05-01 00:25:11 -04:00
bjorn3
15bfd9da85
Introduce CompileMonoItem DepNode
2021-04-12 13:58:12 +02:00
Camille GILLOT
6bfaf3a9cb
Stream the dep-graph to a file.
2021-03-30 18:09:59 +02:00
bjorn3
cd7a011f37
Don't duplicate the extern providers once for each crate
2021-03-29 18:03:07 +02:00
Camille GILLOT
903f65f215
Simplify hashing.
2021-02-21 12:22:22 +01: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
f96e960ccf
Access the session directly from DepContext.
2021-02-20 22:53:46 +01:00
Camille GILLOT
9823c2cc70
Workaround rustdoc not honouring cfg(parallel_compiler).
2021-02-19 22:05:27 +01:00
Camille GILLOT
4581d16bcb
Move the query system to rustc_query_impl.
2021-02-19 17:51:58 +01:00