From 7a515952c92fa849aa4c63c5604eeaacbc15a337 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 12 Oct 2024 19:48:28 +0200 Subject: [PATCH] remove const_cow_is_borrowed feature gate --- alloc/src/borrow.rs | 2 -- alloc/src/lib.rs | 1 - alloc/tests/lib.rs | 1 - 3 files changed, 4 deletions(-) diff --git a/alloc/src/borrow.rs b/alloc/src/borrow.rs index f86face3f90cb..dbfd2e74abee6 100644 --- a/alloc/src/borrow.rs +++ b/alloc/src/borrow.rs @@ -225,7 +225,6 @@ impl Cow<'_, B> { /// assert!(!bull.is_borrowed()); /// ``` #[unstable(feature = "cow_is_borrowed", issue = "65143")] - #[rustc_const_unstable(feature = "const_cow_is_borrowed", issue = "65143")] pub const fn is_borrowed(&self) -> bool { match *self { Borrowed(_) => true, @@ -248,7 +247,6 @@ impl Cow<'_, B> { /// assert!(!bull.is_owned()); /// ``` #[unstable(feature = "cow_is_borrowed", issue = "65143")] - #[rustc_const_unstable(feature = "const_cow_is_borrowed", issue = "65143")] pub const fn is_owned(&self) -> bool { !self.is_borrowed() } diff --git a/alloc/src/lib.rs b/alloc/src/lib.rs index c60c0743c7e12..e6b137b4a3739 100644 --- a/alloc/src/lib.rs +++ b/alloc/src/lib.rs @@ -108,7 +108,6 @@ #![feature(coerce_unsized)] #![feature(const_align_of_val)] #![feature(const_box)] -#![feature(const_cow_is_borrowed)] #![feature(const_eval_select)] #![feature(const_heap)] #![feature(const_maybe_uninit_write)] diff --git a/alloc/tests/lib.rs b/alloc/tests/lib.rs index f43143c6cef65..36aa312036d29 100644 --- a/alloc/tests/lib.rs +++ b/alloc/tests/lib.rs @@ -4,7 +4,6 @@ #![feature(assert_matches)] #![feature(btree_extract_if)] #![feature(cow_is_borrowed)] -#![feature(const_cow_is_borrowed)] #![feature(const_heap)] #![cfg_attr(bootstrap, feature(const_mut_refs))] #![feature(const_ptr_write)]