rust/compiler
bors e21d771b9c Auto merge of #100943 - jyn514:query-system-2, r=cjgillot
Simplify the `define_query` macro

This moves a bunch of control flow out of the macro into generic functions, leaving the macro just to call the function with a new generic parameter for each query.

It may be possible to improve compile-times / icache by instantiating the generic functions only with the query key, not the query type itself, but I'm going to leave that for a follow-up PR.

Helps with https://github.com/rust-lang/rust/issues/96524.

r? `@cjgillot`
2022-09-02 08:28:08 +00:00
..
2022-09-01 14:54:27 +00:00
2022-09-01 14:54:27 +00:00
2022-09-01 14:54:27 +00:00
2022-08-31 18:24:55 +08:00
2022-09-01 14:54:27 +00:00