diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0f8d0a1..4db89a41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: with: toolchain: 1.56.0 targets: x86_64-unknown-linux-gnu - components: clippy,rust-src + components: rust-src - uses: actions/setup-python@v4 with: architecture: "x64" diff --git a/pyo3-build-config/src/lib.rs b/pyo3-build-config/src/lib.rs index 07c5bcb6..f870daa7 100644 --- a/pyo3-build-config/src/lib.rs +++ b/pyo3-build-config/src/lib.rs @@ -161,11 +161,6 @@ pub fn print_feature_cfgs() { if rustc_minor_version >= 59 { println!("cargo:rustc-cfg=thread_local_const_init"); } - - // Enable use of `#[cfg(panic = "...")]` on Rust 1.60 and greater - if rustc_minor_version >= 60 { - println!("cargo:rustc-cfg=panic_unwind"); - } } /// Private exports used in PyO3's build.rs diff --git a/tests/test_class_attributes.rs b/tests/test_class_attributes.rs index e07aa457..781cc799 100644 --- a/tests/test_class_attributes.rs +++ b/tests/test_class_attributes.rs @@ -96,7 +96,6 @@ fn recursive_class_attributes() { } #[test] -#[cfg_attr(cfg_panic, cfg(panic = "unwind"))] fn test_fallible_class_attribute() { use pyo3::{exceptions::PyValueError, types::PyString};