const fns that we use are stable now

This commit is contained in:
Nikolay Kim 2018-02-21 09:23:58 -08:00
parent 438f4bf091
commit b7a8d25338
2 changed files with 2 additions and 3 deletions

View file

@ -43,7 +43,7 @@ impl Default for PyObjectArenaAllocator {
#[inline(always)]
#[allow(unused_parens)]
pub unsafe fn PyType_IS_GC(t : *mut PyTypeObject) -> c_int {
PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)
PyType_HasFeature(t, Py_TPFLAGS_HAVE_GC)
}
/// Test if an object has a GC head

View file

@ -1,5 +1,4 @@
#![feature(specialization, proc_macro, try_from, fn_must_use)]
#![feature(const_fn, const_unsafe_cell_new, const_size_of, const_ptr_null, const_ptr_null_mut)]
//! Rust bindings to the Python interpreter.
//!
@ -130,7 +129,7 @@
//!
//! The extension module can then be imported into Python:
//!
//! ```python
//! ```python,ignore
//! >>> import hello
//! >>> hello.run_rust_func("test")
//! Rust says: Hello Python!