Skip to content

Commit da9f52e

Browse files
Icxoludavidhewitt
authored andcommitted
only emit c-string literals on Rust 1.79 and later (#4352) (#4353)
* only emit c-string literals on Rust 1.79 and later (#4352) * add newsfragment
1 parent 3d7e5a3 commit da9f52e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newsfragments/4353.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fixed compile error due to c-string literals on Rust < 1.79

pyo3-build-config/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub fn print_feature_cfgs() {
143143
println!("cargo:rustc-cfg=invalid_from_utf8_lint");
144144
}
145145

146-
if rustc_minor_version >= 77 {
146+
if rustc_minor_version >= 79 {
147147
println!("cargo:rustc-cfg=c_str_lit");
148148
}
149149

0 commit comments

Comments
 (0)