Skip to content

Commit

Permalink
only emit c-string literals on Rust 1.79 and later (#4352) (#4353)
Browse files Browse the repository at this point in the history
* only emit c-string literals on Rust 1.79 and later (#4352)

* add newsfragment
  • Loading branch information
Icxolu authored and davidhewitt committed Jul 17, 2024
1 parent 3d7e5a3 commit da9f52e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/4353.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fixed compile error due to c-string literals on Rust < 1.79
2 changes: 1 addition & 1 deletion pyo3-build-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub fn print_feature_cfgs() {
println!("cargo:rustc-cfg=invalid_from_utf8_lint");
}

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

Expand Down

0 comments on commit da9f52e

Please sign in to comment.