<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_macros/src/query.rs, branch 1.69.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.69.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.69.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-01-05T18:01:12+00:00</updated>
<entry>
<title>Fix `uninlined_format_args` for some compiler crates</title>
<updated>2023-01-05T18:01:12+00:00</updated>
<author>
<name>nils</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2022-12-19T09:31:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fd7a15971069156f1741fb3a3c34c9f0c54d5744'/>
<id>urn:sha1:fd7a15971069156f1741fb3a3c34c9f0c54d5744</id>
<content type='text'>
Convert all the crates that have had their diagnostic migration
completed (except save_analysis because that will be deleted soon and
apfloat because of the licensing problem).
</content>
</entry>
<entry>
<title>feed resolver_for_lowering instead of storing it in a field</title>
<updated>2022-12-05T10:58:55+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2022-12-03T18:06:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f693b7848ea5b24ef3a503aa59e616492a9b0b22'/>
<id>urn:sha1:f693b7848ea5b24ef3a503aa59e616492a9b0b22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sanity check computed value for feeable queries.</title>
<updated>2022-11-29T18:42:23+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2022-10-29T13:04:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9f2c6b0b09c1f93f922f6fcd46649c3e2110f42b'/>
<id>urn:sha1:9f2c6b0b09c1f93f922f6fcd46649c3e2110f42b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow to set a query's result as a side effect.</title>
<updated>2022-11-29T18:40:59+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2022-03-22T20:45:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=547138134992bfcf9171a781e4a4283cef350a89'/>
<id>urn:sha1:547138134992bfcf9171a781e4a4283cef350a89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of `rustc_query_description!`</title>
<updated>2022-10-14T20:35:56+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2022-10-10T18:03:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=167b3bd3b23bad1a8436f7a7a8637ec64d41acd6'/>
<id>urn:sha1:167b3bd3b23bad1a8436f7a7a8637ec64d41acd6</id>
<content type='text'>
Queries can provide an arbitrary expression for their description and
their caching behavior. Before, these expressions where stored in a
`rustc_query_description` macro emitted by the `rustc_queries` macro,
and then used in `rustc_query_impl` to fill out the methods for the
`QueryDescription` trait.

Instead, we now emit two new modules from `rustc_queries` containing the
functions with the expressions. `rustc_query_impl` calls these functions
now instead of invoking the macro.

Since we are now defining some of the functions in
`rustc_middle::query`, we now need all the imports for the key types
there as well.
</content>
</entry>
<entry>
<title>Remove unsued variable in query macro</title>
<updated>2022-10-14T20:32:05+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2022-10-10T16:11:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1566273f482612fa5812ecb41d15a9c87a571465'/>
<id>urn:sha1:1566273f482612fa5812ecb41d15a9c87a571465</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #101173 - jyn514:simplify-macro-arguments, r=cjgillot</title>
<updated>2022-09-15T11:54:03+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2022-09-15T11:54:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=294f0eef736aa13cadf28ce7160a18a94ca7b87c'/>
<id>urn:sha1:294f0eef736aa13cadf28ce7160a18a94ca7b87c</id>
<content type='text'>
Further simplify the macros generated by `rustc_queries`

This doesn't actually move anything outside the macros, but it makes them simpler to read.

- Add a new `rustc_query_names` macro. This allows a much simpler syntax for the matchers in the macros passed to it as a callback.
- Convert `define_dep_nodes` and `alloc_once` to use `rustc_query_names`. This is possible because they only use the names
  (despite the quite complicated matchers in `define_dep_nodes`, none of the other arguments are used).
- Get rid of `rustc_dep_node_append`.

r? `@cjgillot`
</content>
</entry>
<entry>
<title>Update compiler/rustc_macros/src/query.rs</title>
<updated>2022-09-14T17:11:53+00:00</updated>
<author>
<name>Camille Gillot</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2022-09-14T17:11:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cb2949e6425688078b6b3eb38d91f607ab280a16'/>
<id>urn:sha1:cb2949e6425688078b6b3eb38d91f607ab280a16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move `TRY_LOAD_FROM_DISK` out of `rustc_queries` to `rustc_query_impl`</title>
<updated>2022-09-10T01:21:59+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>jnelson@cloudflare.com</email>
</author>
<published>2022-09-05T11:43:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9273782d559a342beb2443018f2f8fc873f53b79'/>
<id>urn:sha1:9273782d559a342beb2443018f2f8fc873f53b79</id>
<content type='text'>
We want to refer to `crate::plumbing::try_load_from_disk` in the const, but hard-coding it in
rustc_queries, where we don't yet know the crate this macro will be called in, seems kind of hacky.
Do it in query_impl instead.
</content>
</entry>
<entry>
<title>Don't create a new `try_load_from_disk` closure for each query</title>
<updated>2022-09-10T01:20:12+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>jnelson@cloudflare.com</email>
</author>
<published>2022-09-02T03:20:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b164dbc2715aa15be5c9f363a00d71e0847b2e77'/>
<id>urn:sha1:b164dbc2715aa15be5c9f363a00d71e0847b2e77</id>
<content type='text'>
Instead, define a single function, parameterized only by the return type.
</content>
</entry>
</feed>
