From b49e4013196f159f4fbf3d00572717982bbf8b66 Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Mon, 5 Jun 2023 09:36:13 +0200 Subject: [PATCH] Remove unmatched cfg and unused rustup component. --- .github/workflows/ci.yml | 2 +- pyo3-build-config/src/lib.rs | 5 ----- tests/test_class_attributes.rs | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) 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};