Skip to content

Commit

Permalink
Resolve unexpected_cfgs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 7, 2024
1 parent cc6803d commit f89f277
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ fn main() {
None => return,
};

if version.minor >= 80 {
println!("cargo:rustc-check-cfg=cfg(no_literal_fromstr)");
println!("cargo:rustc-check-cfg=cfg(feature, values(\"protocol_feature_paste\"))");
}

if version.minor < 54 {
// https://github.com/rust-lang/rust/pull/84717
println!("cargo:rustc-cfg=no_literal_fromstr");
Expand Down

0 comments on commit f89f277

Please sign in to comment.