Skip to content

Commit 02c9535

Browse files
peterzhu2118mrzasa
authored andcommitted
[ruby/mmtk] Fix compatibility for Rust 1.85
ruby/mmtk@9da566e26a
1 parent 3598287 commit 02c9535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gc/mmtk/src/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl ObjectClosure {
163163
F2: 'env + FnOnce() -> T,
164164
{
165165
debug_assert!(
166-
self.c_function == THE_UNREGISTERED_CLOSURE_FUNC,
166+
std::ptr::fn_addr_eq(self.c_function, THE_UNREGISTERED_CLOSURE_FUNC),
167167
"set_temporarily_and_run_code is recursively called."
168168
);
169169
self.c_function = Self::c_function_registered::<F1>;

0 commit comments

Comments
 (0)