We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd1c2d9 commit 6c352a6Copy full SHA for 6c352a6
src/impl_/pymethods.rs
@@ -21,10 +21,11 @@ use std::panic::{catch_unwind, AssertUnwindSafe};
21
use std::ptr::null_mut;
22
23
#[cfg(feature = "nightly")]
24
-// #![feature(ptr_fn_addr_eq)]
+#![feature(ptr_fn_addr_eq)]
25
use std::ptr::fn_addr_eq;
26
27
#[cfg(not(feature = "nightly"))]
28
29
use std::marker::FnPtr;
30
pub fn fn_addr_eq<T: FnPtr, U: FnPtr>(f: T, g: U) -> bool {
31
f.addr() == g.addr()
0 commit comments