diff options
author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-16 19:34:31 +0100 |
---|---|---|
committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-25 06:11:01 +0100 |
commit | a049550c457dc78e81ffa69d03e1619f4ff689a2 (patch) | |
tree | 66e0dd92ffaccf05b74d527d0d90b4f84bf65182 /compiler/rustc_query_impl | |
parent | 5fa60a5d25739142cd45aed22df3b10739066854 (diff) | |
download | rust-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.rs | 4 |
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) }) } |