Delete support for compilers without std::collections::Bound

This commit is contained in:
David Tolnay
2023-07-27 22:27:52 -07:00
parent 677c13a4ec
commit 9350927903
4 changed files with 3 additions and 6 deletions
-3
View File
@@ -21,9 +21,6 @@ fn main() {
// https://doc.rust-lang.org/core/ops/enum.Bound.html
if minor < 26 {
println!("cargo:rustc-cfg=no_ops_bound");
if minor < 17 {
println!("cargo:rustc-cfg=no_collections_bound");
}
}
// core::cmp::Reverse stabilized in Rust 1.19:
+1 -1
View File
@@ -2709,7 +2709,7 @@ mod range_to {
////////////////////////////////////////////////////////////////////////////////
#[cfg(any(not(no_ops_bound), all(feature = "std", not(no_collections_bound))))]
#[cfg(any(not(no_ops_bound), feature = "std"))]
impl<'de, T> Deserialize<'de> for Bound<T>
where
T: Deserialize<'de>,
+1 -1
View File
@@ -249,7 +249,7 @@ mod lib {
#[cfg(feature = "std")]
pub use std::time::{SystemTime, UNIX_EPOCH};
#[cfg(all(feature = "std", not(no_collections_bound), no_ops_bound))]
#[cfg(all(feature = "std", no_ops_bound))]
pub use std::collections::Bound;
#[cfg(not(no_core_reverse))]
+1 -1
View File
@@ -310,7 +310,7 @@ where
////////////////////////////////////////////////////////////////////////////////
#[cfg(any(not(no_ops_bound), all(feature = "std", not(no_collections_bound))))]
#[cfg(any(not(no_ops_bound), feature = "std"))]
impl<T> Serialize for Bound<T>
where
T: Serialize,