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 3598287 commit 02c9535Copy full SHA for 02c9535
gc/mmtk/src/abi.rs
@@ -163,7 +163,7 @@ impl ObjectClosure {
163
F2: 'env + FnOnce() -> T,
164
{
165
debug_assert!(
166
- self.c_function == THE_UNREGISTERED_CLOSURE_FUNC,
+ std::ptr::fn_addr_eq(self.c_function, THE_UNREGISTERED_CLOSURE_FUNC),
167
"set_temporarily_and_run_code is recursively called."
168
);
169
self.c_function = Self::c_function_registered::<F1>;
0 commit comments