extern crate version_check as rustc;
fn main() {
let subverted = cfg!(feature = "subvert_stable_guarantees");
if subverted {
println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
}
let nightly = rustc::is_feature_flaggable().unwrap_or(false);
if nightly {
println!("cargo:rustc-cfg=feature=\"rustc_is_nightly\"");
} else {
println!("cargo:rustc-cfg=feature=\"rustc_is_stable\"");
if !subverted {
println!("cargo:warning=attempting to compile datatest on stable without opting in to subvert_stable_guarantees feature; will fail");
}
}
if rustc::is_min_version("1.52.0").unwrap_or(false) {
println!("cargo:rustc-cfg=feature=\"rustc_test_TestOpts_filters_vec\"");
}
if !rustc::is_min_version("1.59.0").unwrap_or(false) {
println!("cargo:rustc-cfg=feature=\"rustc_test_TDynBenchFn\"");
}
if !rustc::is_min_version("1.60.0").unwrap_or(false) {
println!("cargo:rustc-cfg=feature=\"rustc_test_Allow_fail\"");
}
if rustc::is_min_version("1.61.0").unwrap_or(false) {
println!("cargo:rustc-cfg=feature=\"rustc_test_Ignore_messages\"");
}
}