about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/structured_errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-02 08:28:08 +0000
committerbors <bors@rust-lang.org>2022-09-02 08:28:08 +0000
commite21d771b9c76056d20db310ce8655539045b3af5 (patch)
treeb53949a69122e0da6b9cd449db95e6f877e48a30 /compiler/rustc_hir_analysis/src/structured_errors.rs
parentb10aed0084e3fb32b365dba06a1b644c3b0f438b (diff)
parent4e09a13bb848a64acf6bb20359f582e813e74764 (diff)
downloadrust-e21d771b9c76056d20db310ce8655539045b3af5.tar.gz
rust-e21d771b9c76056d20db310ce8655539045b3af5.zip
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`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors.rs')
0 files changed, 0 insertions, 0 deletions