summaryrefslogtreecommitdiff
path: root/compiler/rustc_query_impl
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-16 19:34:31 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-25 06:11:01 +0100
commita049550c457dc78e81ffa69d03e1619f4ff689a2 (patch)
tree66e0dd92ffaccf05b74d527d0d90b4f84bf65182 /compiler/rustc_query_impl
parent5fa60a5d25739142cd45aed22df3b10739066854 (diff)
downloadrust-a049550c457dc78e81ffa69d03e1619f4ff689a2.tar.gz
Move `ensure_sufficient_stack` to `try_execute_query` callers
Diffstat (limited to 'compiler/rustc_query_impl')
-rw-r--r--compiler/rustc_query_impl/src/plumbing.rs4
1 files changed, 1 insertions, 3 deletions
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)
})
}