diff --git a/pyo3-build-config/src/lib.rs b/pyo3-build-config/src/lib.rs index 2b5e76e4..21e057d8 100644 --- a/pyo3-build-config/src/lib.rs +++ b/pyo3-build-config/src/lib.rs @@ -141,7 +141,9 @@ pub fn print_feature_cfgs() { println!("cargo:rustc-cfg=invalid_from_utf8_lint"); } - if rustc_minor_version >= 78 { + // Actually this is available on 1.78, but we should avoid + // https://github.com/rust-lang/rust/issues/124651 just in case + if rustc_minor_version >= 79 { println!("cargo:rustc-cfg=diagnostic_namespace"); } }