Remove unmatched cfg and unused rustup component.
This commit is contained in:
parent
3332f31339
commit
b49e401319
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in New Issue