Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #102 from dtolnay/checkcfg
Browse files Browse the repository at this point in the history
Resolve unexpected_cfgs warning
  • Loading branch information
dtolnay authored May 7, 2024
2 parents cc6803d + 1edfaae commit 1d23098
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 1d23098

Please # to comment.