We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cdefd7 commit 59536fbCopy full SHA for 59536fb
compiler/rustc_data_structures/src/stack.rs
@@ -12,6 +12,7 @@ const STACK_PER_RECURSION: usize = 1 * 1024 * 1024; // 1MB
12
/// from this.
13
///
14
/// Should not be sprinkled around carelessly, as it causes a little bit of overhead.
15
+#[inline]
16
pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
17
stacker::maybe_grow(RED_ZONE, STACK_PER_RECURSION, f)
18
}
0 commit comments