diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-08-29 10:20:14 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-01 18:47:54 -0500 |
| commit | 4e09a13bb848a64acf6bb20359f582e813e74764 (patch) | |
| tree | d23e7f5bf456b2d3b4c5e3cb1ea6ed7ae724f7ed /compiler/rustc_query_system/src/error.rs | |
| parent | 4fcc7452666a82c677ae6563bad31c852c258215 (diff) | |
| download | rust-4e09a13bb848a64acf6bb20359f582e813e74764.tar.gz rust-4e09a13bb848a64acf6bb20359f582e813e74764.zip | |
Don't create two new closures for each query
- Parameterize DepKindStruct over `'tcx`
This allows passing in an invariant function pointer in `query_callback`,
rather than having to try and make it work for any lifetime.
- Add a new `execute_query` function to `QueryDescription` so we can call `tcx.$name` without needing to be in a macro context
Diffstat (limited to 'compiler/rustc_query_system/src/error.rs')
0 files changed, 0 insertions, 0 deletions
