Delete support for compilers without Iterator::try_for_each

This commit is contained in:
David Tolnay
2023-07-30 21:03:28 -07:00
parent 4dcf791706
commit 92e91b3557
2 changed files with 4 additions and 36 deletions
-6
View File
@@ -16,12 +16,6 @@ fn main() {
let target = env::var("TARGET").unwrap();
let emscripten = target == "asmjs-unknown-emscripten" || target == "wasm32-unknown-emscripten";
// Iterator::try_for_each stabilized in Rust 1.27:
// https://blog.rust-lang.org/2018/06/21/Rust-1.27.html#library-stabilizations
if minor < 27 {
println!("cargo:rustc-cfg=no_iterator_try_fold");
}
// Non-zero integers stabilized in Rust 1.28:
// https://blog.rust-lang.org/2018/08/02/Rust-1.28.html#library-stabilizations
if minor < 28 {