From 9e53418aadfd9d4f443fbf3c0b7e2d3823f7b260 Mon Sep 17 00:00:00 2001 From: konstin Date: Fri, 1 Feb 2019 18:09:51 +0100 Subject: [PATCH] Less feature(specialization) --- Cargo.toml | 1 - README.md | 4 ---- guide/src/class.md | 5 ----- guide/src/exception.md | 2 -- guide/src/function.md | 2 -- guide/src/get_started.md | 4 ---- guide/src/rust-cpython.md | 2 -- tests/test_arithmetics.rs | 2 -- tests/test_buffer_protocol.rs | 2 -- tests/test_class_basics.rs | 2 -- tests/test_class_new.rs | 2 -- tests/test_gc.rs | 2 -- tests/test_getter_setter.rs | 2 -- tests/test_inheritance.rs | 2 -- tests/test_methods.rs | 2 -- tests/test_module.rs | 2 -- tests/test_variable_arguments.rs | 2 -- tests/test_various.rs | 2 -- 18 files changed, 42 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 56dcad5d..add83a70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,6 @@ edition = "2018" [badges] travis-ci = { repository = "PyO3/pyo3", branch = "master" } appveyor = { repository = "fafhrd91/pyo3" } -codecov = { repository = "PyO3/pyo3", branch = "master", service = "github" } [dependencies] libc = "0.2.48" diff --git a/README.md b/README.md index e338d4d9..717af978 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,6 @@ features = ["extension-module"] **`src/lib.rs`** ```rust -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::wrap_pyfunction; @@ -97,8 +95,6 @@ pyo3 = "0.6.0-alpha.2" Example program displaying the value of `sys.version`: ```rust -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::types::PyDict; diff --git a/guide/src/class.md b/guide/src/class.md index d5e0d3ca..2841b3e1 100644 --- a/guide/src/class.md +++ b/guide/src/class.md @@ -474,11 +474,8 @@ These correspond to the slots `tp_traverse` and `tp_clear` in the Python C API. as every cycle must contain at least one mutable reference. Example: ```rust -#![feature(specialization)] - use pyo3::prelude::*; - #[pyclass] struct ClassWithGCSupport { obj: Option, @@ -521,8 +518,6 @@ It includes two methods `__iter__` and `__next__`: Example: ```rust -#![feature(specialization)] - use pyo3::prelude::*; #[pyclass] diff --git a/guide/src/exception.md b/guide/src/exception.md index 5aa7068c..7f1ffb7a 100644 --- a/guide/src/exception.md +++ b/guide/src/exception.md @@ -126,8 +126,6 @@ trait can be implemented. In that case actual exception arguments creation get d until `Python` object is available. ```rust,ignore -#![feature(specialization)] - use std::net::TcpListener; use pyo3::{PyErr, PyResult, exc}; diff --git a/guide/src/function.md b/guide/src/function.md index aabdf249..0e9a9436 100644 --- a/guide/src/function.md +++ b/guide/src/function.md @@ -30,8 +30,6 @@ as first parameter, the function name as second and an instance of `Python` as third. ```rust -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::wrap_pyfunction; diff --git a/guide/src/get_started.md b/guide/src/get_started.md index b1336ab3..603c031b 100644 --- a/guide/src/get_started.md +++ b/guide/src/get_started.md @@ -45,8 +45,6 @@ features = ["extension-module"] **`src/lib.rs`** ```rust -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::wrap_pyfunction; @@ -91,8 +89,6 @@ pyo3 = "0.5" Example program displaying the value of `sys.version`: ```rust -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::types::PyDict; diff --git a/guide/src/rust-cpython.md b/guide/src/rust-cpython.md index d46a4732..f7484e9a 100644 --- a/guide/src/rust-cpython.md +++ b/guide/src/rust-cpython.md @@ -25,8 +25,6 @@ py_class!(class MyClass |py| { **pyo3** ```rust -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::PyRawObject; diff --git a/tests/test_arithmetics.rs b/tests/test_arithmetics.rs index f450db51..e937c4f8 100644 --- a/tests/test_arithmetics.rs +++ b/tests/test_arithmetics.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::class::*; use pyo3::prelude::*; use pyo3::types::PyObjectRef; diff --git a/tests/test_buffer_protocol.rs b/tests/test_buffer_protocol.rs index 1cb802cf..0370db6e 100644 --- a/tests/test_buffer_protocol.rs +++ b/tests/test_buffer_protocol.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::class::PyBufferProtocol; use pyo3::exceptions::BufferError; use pyo3::ffi; diff --git a/tests/test_class_basics.rs b/tests/test_class_basics.rs index d7d94d4c..a1f24eca 100644 --- a/tests/test_class_basics.rs +++ b/tests/test_class_basics.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; #[macro_use] diff --git a/tests/test_class_new.rs b/tests/test_class_new.rs index 89d01b34..6460b671 100644 --- a/tests/test_class_new.rs +++ b/tests/test_class_new.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::PyRawObject; diff --git a/tests/test_gc.rs b/tests/test_gc.rs index 72856d60..4e182359 100644 --- a/tests/test_gc.rs +++ b/tests/test_gc.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::class::PyGCProtocol; use pyo3::class::PyTraverseError; use pyo3::class::PyVisit; diff --git a/tests/test_getter_setter.rs b/tests/test_getter_setter.rs index ea95b842..919e987f 100644 --- a/tests/test_getter_setter.rs +++ b/tests/test_getter_setter.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; use std::isize; diff --git a/tests/test_inheritance.rs b/tests/test_inheritance.rs index ba67fd5b..9291ca5c 100644 --- a/tests/test_inheritance.rs +++ b/tests/test_inheritance.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::types::PyDict; use std::isize; diff --git a/tests/test_methods.rs b/tests/test_methods.rs index 0b05ae93..518ccb2a 100644 --- a/tests/test_methods.rs +++ b/tests/test_methods.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::types::{PyDict, PyString, PyTuple, PyType}; use pyo3::PyRawObject; diff --git a/tests/test_module.rs b/tests/test_module.rs index 75a24c01..6dfce243 100644 --- a/tests/test_module.rs +++ b/tests/test_module.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; #[cfg(Py_3)] diff --git a/tests/test_variable_arguments.rs b/tests/test_variable_arguments.rs index 133d576d..f2c69468 100644 --- a/tests/test_variable_arguments.rs +++ b/tests/test_variable_arguments.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::types::{PyDict, PyTuple}; diff --git a/tests/test_various.rs b/tests/test_various.rs index 5679f40a..ed2283cd 100644 --- a/tests/test_various.rs +++ b/tests/test_various.rs @@ -1,5 +1,3 @@ -#![feature(specialization)] - use pyo3::prelude::*; use pyo3::types::PyDict; use pyo3::wrap_pyfunction;