From b7aae207c2c3c094f3345f5f5b575672376a8d32 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 12 Apr 2023 11:42:01 -0400 Subject: [PATCH] tamer: Rust v1.{68=>70}: Stabalized nonzero_min_max and is_some_and These two features have been stabalized in Rust 1.70. --- tamer/configure.ac | 2 +- tamer/src/lib.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tamer/configure.ac b/tamer/configure.ac index 55bb7e31..42009e13 100644 --- a/tamer/configure.ac +++ b/tamer/configure.ac @@ -56,7 +56,7 @@ test -n "$CARGO" || AC_MSG_ERROR([cargo not found]) AC_SUBST([CARGO_FLAGS], "--frozen --offline") # This is a nightly version at the time of writing -rustc_ver_req=1.68 +rustc_ver_req=1.70 AC_CHECK_PROGS(RUSTC, [rustc]) AC_MSG_CHECKING([rustc $RUST_TC version >= $rustc_ver_req]) diff --git a/tamer/src/lib.rs b/tamer/src/lib.rs index 2b72a6eb..8026be46 100644 --- a/tamer/src/lib.rs +++ b/tamer/src/lib.rs @@ -60,15 +60,12 @@ // in which case this feature's only substitute is a type parameter. #![feature(associated_type_defaults)] // Convenience features that are easily replaced if not stabalized. -#![feature(nonzero_min_max)] #![feature(nonzero_ops)] // Enabled for qualified paths in `matches!`. #![feature(more_qualified_paths)] // Collecting interators into existing objects. // Can be done manually in a more verbose way. #![feature(iter_collect_into)] -// Convenience; can be done more verbosely. -#![feature(is_some_and)] // Used for const params like `&'static str` in `crate::fmt`. // If this is not stabalized, // then we can do without by changing the abstraction;