Camille GILLOT
143b8816a3
Stop leaking memory.
2020-04-28 11:34:53 +02:00
Camille GILLOT
bd42ef6e4f
Introduce ArenaStorage.
2020-04-28 11:24:53 +02:00
Camille GILLOT
e8ef41e83f
Allow the QueryCache to specify storage.
2020-04-28 11:14:48 +02:00
Josh Stone
2325c20925
Avoid unused Option::map results
...
These are changes that would be needed if we add `#[must_use]` to
`Option::map`, per #71484 .
2020-04-24 13:58:41 -07:00
Shotaro Yamada
33905adc5f
Remove unused dependencies
2020-04-20 17:59:27 +09:00
bors
9b2f8dbba3
Auto merge of #71007 - Amanieu:deprecate_asm, r=Mark-Simulacrum
...
Deprecate the asm! macro in favor of llvm_asm!
Since we will be changing the syntax of `asm!` soon, deprecate it and encourage people to use `llvm_asm!` instead (which preserves the old syntax). This will avoid breakage when `asm!` is changed.
RFC: https://github.com/rust-lang/rfcs/pull/2843
2020-04-20 02:18:00 +00:00
Matthias Krüger
3837df2992
don't clone types that are copy (clippy::clone_on_copy)
2020-04-16 00:17:38 +02:00
Amanieu d'Antras
c4ca63885e
Update parking_lot dependency to avoid use of deprecated asm!
2020-04-15 17:46:29 +01:00
John Kåre Alsaker
87cdfb6e71
Add inline attributes for functions used in the query system
2020-03-30 14:37:44 +02:00
Mazdak Farrokhzad
7710f2dd5c
rustc -> rustc_middle part 1
2020-03-30 07:02:56 +02:00
Camille GILLOT
2d7bbda966
Implement HashStable directly.
2020-03-27 08:33:37 +01:00
Camille GILLOT
222d010255
Cleanups.
2020-03-27 07:50:28 +01:00
Camille GILLOT
db5be1fe20
Move QueryContext to the parent module.
2020-03-27 07:43:11 +01:00
Camille GILLOT
4faf701d20
Remove the QueryGetter trait.
2020-03-27 07:35:32 +01:00
Camille GILLOT
260cfaba12
Don't allow access to the Session.
2020-03-26 09:40:52 +01:00
Camille GILLOT
d224e214e0
Rename read_query_job -> current_query_job and simplify it.
2020-03-26 09:40:52 +01:00
Camille GILLOT
fce0d37619
Add comment.
2020-03-26 09:40:52 +01:00
Camille GILLOT
5dfed41812
Simplify generics on try_start.
2020-03-26 09:40:51 +01:00
Camille GILLOT
fa06cfd25b
Move generics on QueryCache.
2020-03-26 09:40:51 +01:00
Camille GILLOT
0e8b59a2f4
Prune dependencies.
2020-03-26 09:40:51 +01:00
Camille GILLOT
b6033fca02
Retire DepGraphSafe and HashStableContext.
2020-03-26 09:40:51 +01:00
Camille GILLOT
228ca8ef0a
Access QueryStateShard directly.
2020-03-26 09:40:50 +01:00
Camille GILLOT
d305b2ccc6
Unify key types in get_lookup.
2020-03-26 09:40:50 +01:00
Camille GILLOT
301ad11e9b
Rustfmt.
2020-03-26 09:40:50 +01:00
Camille GILLOT
8e873c3c64
Make librustc_query_system compile.
2020-03-26 09:25:35 +01:00
Camille GILLOT
5b8dac3c39
Move query system to librustc_query_system.
2020-03-26 09:22:46 +01:00
Camille GILLOT
27e8a95717
Generalise Query starting.
2020-03-26 09:22:46 +01:00
Camille GILLOT
a51ad889dd
Decouple from DepKind.
2020-03-26 09:22:45 +01:00
Camille GILLOT
e0f7b897ba
Address review.
2020-03-23 23:17:17 +01:00
Camille GILLOT
d08cc0ba67
Put extract_def_id back on DepNode.
2020-03-23 23:16:35 +01:00
Camille GILLOT
3a8bb20230
Remove assert_ignored and with_ignore_deps.
2020-03-23 23:15:51 +01:00
Camille GILLOT
2326ae39b2
Merge ensure_node_can_be_forced into force_from_dep_node.
2020-03-23 23:15:08 +01:00
Camille GILLOT
db7bd5f828
Fallout in other crates.
2020-03-23 23:14:26 +01:00
Camille GILLOT
6624dc4045
Make librustc_query_system compile.
2020-03-23 23:07:19 +01:00
Camille GILLOT
a7e2641b9a
Move dep_graph to new crate librustc_query_system.
2020-03-23 23:07:19 +01:00