Skip to main content

force_disable_borrow_hoist_for_test

Function force_disable_borrow_hoist_for_test 

Source
pub fn force_disable_borrow_hoist_for_test(disabled: bool)
Expand description

Force borrow hoisting off (or back on) for the current thread only. Used by tests to verify the kill switch without the env-var data race.