From a049550c457dc78e81ffa69d03e1619f4ff689a2 Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Thu, 16 Feb 2023 19:34:31 +0100 Subject: Move `ensure_sufficient_stack` to `try_execute_query` callers --- compiler/rustc_query_impl/src/plumbing.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'compiler/rustc_query_impl/src') diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index e2884f2026e..a8592bd7086 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -124,9 +124,7 @@ impl QueryContext for QueryCtxt<'_> { }; // Use the `ImplicitCtxt` while we execute the query. - tls::enter_context(&new_icx, || { - rustc_data_structures::stack::ensure_sufficient_stack(compute) - }) + tls::enter_context(&new_icx, compute) }) } -- cgit 1.4.1-3-g733a5