Skip to content

Commit fd873e8

Browse files
authored
Rust: add stub for ensure_sufficient_stack (facebook#2943)
1 parent 90a5d48 commit fd873e8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
9+
f()
10+
}

0 commit comments

Comments
 (0)