about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-26 09:44:54 +0000
committerbors <bors@rust-lang.org>2023-02-26 09:44:54 +0000
commit43ee4d15bf201f72c36abd7f02961df87dead441 (patch)
tree129c3d2af19f712f7e2e9204c2e0d1f8a744e499 /compiler/rustc_query_impl/src
parent70fd012439d75fd6ce561a6518b9b8fd399f455f (diff)
parentdd73080cc037678410ae7e016298a6bbafaae3a6 (diff)
downloadrust-43ee4d15bf201f72c36abd7f02961df87dead441.tar.gz
rust-43ee4d15bf201f72c36abd7f02961df87dead441.zip
Auto merge of #108375 - Zoxc:query-inline, r=cjgillot
Add inlining attributes for query system functions

These only have a single caller, but don't always get inlined.
Diffstat (limited to 'compiler/rustc_query_impl/src')
-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)
         })
     }