We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8bb3bc commit 1ad44b2Copy full SHA for 1ad44b2
library/std/src/sys_common/thread_info.rs
@@ -42,7 +42,3 @@ pub fn set(stack_guard: Option<Guard>, thread: Thread) {
42
THREAD_INFO.with(|c| assert!(c.borrow().is_none()));
43
THREAD_INFO.with(move |c| *c.borrow_mut() = Some(ThreadInfo { stack_guard, thread }));
44
}
45
-
46
-pub fn reset_guard(stack_guard: Option<Guard>) {
47
- THREAD_INFO.with(move |c| c.borrow_mut().as_mut().unwrap().stack_guard = stack_guard);
48
-}
0 commit comments