diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-07 08:32:30 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-04-30 09:48:47 +0200 |
| commit | 2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a (patch) | |
| tree | 21e77a8aced08d42d001eff02338fa66364a9b5e /compiler/rustc_interface/src/passes.rs | |
| parent | d3edfd18c790971c77845bfc1a2be4f9281c5416 (diff) | |
| download | rust-2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a.tar.gz rust-2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a.zip | |
Use dynamic dispatch for queries
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 48401eabd1e..d3af01474b8 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -700,9 +700,12 @@ pub fn create_global_ctxt<'tcx>( hir_arena, untracked, dep_graph, - query_result_on_disk_cache, rustc_query_impl::query_callbacks(arena), - rustc_query_impl::query_system_fns(local_providers, extern_providers), + rustc_query_impl::query_system( + local_providers, + extern_providers, + query_result_on_disk_cache, + ), ) }) }) |
