[ruby/mmtk] Fix compatibility for Rust 1.85
https://github.com/ruby/mmtk/commit/9da566e26a
This commit is contained in:
parent
b2cf48f406
commit
0f1cb92345
@ -163,7 +163,7 @@ impl ObjectClosure {
|
|||||||
F2: 'env + FnOnce() -> T,
|
F2: 'env + FnOnce() -> T,
|
||||||
{
|
{
|
||||||
debug_assert!(
|
debug_assert!(
|
||||||
self.c_function == THE_UNREGISTERED_CLOSURE_FUNC,
|
std::ptr::fn_addr_eq(self.c_function, THE_UNREGISTERED_CLOSURE_FUNC),
|
||||||
"set_temporarily_and_run_code is recursively called."
|
"set_temporarily_and_run_code is recursively called."
|
||||||
);
|
);
|
||||||
self.c_function = Self::c_function_registered::<F1>;
|
self.c_function = Self::c_function_registered::<F1>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user