Invert build.rs cfgs in serde_test

This commit is contained in:
Taiki Endo
2022-08-04 20:20:31 +09:00
parent abb2a8494d
commit a5fd85a9ef
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ fn main() {
// #[track_caller] stabilized in Rust 1.46:
// https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html#track_caller
if minor >= 46 {
println!("cargo:rustc-cfg=track_caller");
if minor < 46 {
println!("cargo:rustc-cfg=no_track_caller");
}
}