Implement for std::num::NonZero* on Rust 1.28+

… regardless of the `unstable` feature. Fix #1274.
This commit is contained in:
Simon Sapin
2018-05-24 16:38:49 +02:00
parent 0c5f20c148
commit defd8853b1
4 changed files with 13 additions and 10 deletions
+6
View File
@@ -38,4 +38,10 @@ fn main() {
if minor >= 26 {
println!("cargo:rustc-cfg=integer128");
}
// Non-zero integers stabilized in Rust 1.28:
// https://github.com/rust-lang/rust/pull/50808
if minor >= 28 {
println!("cargo:rustc-cfg=num_nonzero");
}
}