Rust: add stub for ensure_sufficient_stack (#2943)

This commit is contained in:
Jan Kassens
2024-05-07 15:41:03 -04:00
committed by GitHub
parent 90a5d48a2f
commit fd873e8ddd

View File

@@ -0,0 +1,10 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
f()
}