From 2fe28ae0a40f280eb85ef948b1dae8aa1be41d7a Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Tue, 7 Feb 2023 08:32:30 +0100 Subject: Use dynamic dispatch for queries --- compiler/rustc_interface/src/interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_interface/src/interface.rs') 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) { // 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 } -- cgit 1.4.1-3-g733a5