diff --git a/src/impl_/pymethods.rs b/src/impl_/pymethods.rs index 9ee5596bc42..71a4ae1162c 100644 --- a/src/impl_/pymethods.rs +++ b/src/impl_/pymethods.rs @@ -21,10 +21,11 @@ use std::panic::{catch_unwind, AssertUnwindSafe}; use std::ptr::null_mut; #[cfg(feature = "nightly")] -// #![feature(ptr_fn_addr_eq)] +#![feature(ptr_fn_addr_eq)] use std::ptr::fn_addr_eq; #[cfg(not(feature = "nightly"))] +#![feature(ptr_fn_addr_eq)] use std::marker::FnPtr; pub fn fn_addr_eq(f: T, g: U) -> bool { f.addr() == g.addr()