about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-07 08:32:30 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-04-30 09:48:47 +0200
commit2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a (patch)
tree21e77a8aced08d42d001eff02338fa66364a9b5e /compiler/rustc_interface/src/interface.rs
parentd3edfd18c790971c77845bfc1a2be4f9281c5416 (diff)
downloadrust-2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a.tar.gz
rust-2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a.zip
Use dynamic dispatch for queries
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
-rw-r--r--compiler/rustc_interface/src/interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs
index 8e9150ba8ad..6593ef1e94a 100644
--- a/compiler/rustc_interface/src/interface.rs
+++ b/compiler/rustc_interface/src/interface.rs
@@ -318,7 +318,7 @@ pub fn try_print_query_stack(handler: &Handler, num_frames: Option<usize>) {
     // state if it was responsible for triggering the panic.
     let i = ty::tls::with_context_opt(|icx| {
         if let Some(icx) = icx {
-            print_query_stack(QueryCtxt { tcx: icx.tcx }, icx.query, handler, num_frames)
+            print_query_stack(QueryCtxt::new(icx.tcx), icx.query, handler, num_frames)
         } else {
             0
         }