Skip to content

Commit 6c352a6

Browse files
authored
Include #![feature(ptr_fn_addr_eq)] for non-nightly builds
1 parent dd1c2d9 commit 6c352a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/impl_/pymethods.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ use std::panic::{catch_unwind, AssertUnwindSafe};
2121
use std::ptr::null_mut;
2222

2323
#[cfg(feature = "nightly")]
24-
// #![feature(ptr_fn_addr_eq)]
24+
#![feature(ptr_fn_addr_eq)]
2525
use std::ptr::fn_addr_eq;
2626

2727
#[cfg(not(feature = "nightly"))]
28+
#![feature(ptr_fn_addr_eq)]
2829
use std::marker::FnPtr;
2930
pub fn fn_addr_eq<T: FnPtr, U: FnPtr>(f: T, g: U) -> bool {
3031
f.addr() == g.addr()

0 commit comments

Comments
 (0)