remove const_cow_is_borrowed feature gate
This commit is contained in:
parent
8f8bee4f60
commit
a0661ec331
@ -225,7 +225,6 @@ impl<B: ?Sized + ToOwned> Cow<'_, B> {
|
|||||||
/// assert!(!bull.is_borrowed());
|
/// assert!(!bull.is_borrowed());
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "cow_is_borrowed", issue = "65143")]
|
#[unstable(feature = "cow_is_borrowed", issue = "65143")]
|
||||||
#[rustc_const_unstable(feature = "const_cow_is_borrowed", issue = "65143")]
|
|
||||||
pub const fn is_borrowed(&self) -> bool {
|
pub const fn is_borrowed(&self) -> bool {
|
||||||
match *self {
|
match *self {
|
||||||
Borrowed(_) => true,
|
Borrowed(_) => true,
|
||||||
@ -248,7 +247,6 @@ pub const fn is_borrowed(&self) -> bool {
|
|||||||
/// assert!(!bull.is_owned());
|
/// assert!(!bull.is_owned());
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "cow_is_borrowed", issue = "65143")]
|
#[unstable(feature = "cow_is_borrowed", issue = "65143")]
|
||||||
#[rustc_const_unstable(feature = "const_cow_is_borrowed", issue = "65143")]
|
|
||||||
pub const fn is_owned(&self) -> bool {
|
pub const fn is_owned(&self) -> bool {
|
||||||
!self.is_borrowed()
|
!self.is_borrowed()
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,6 @@
|
|||||||
#![feature(coerce_unsized)]
|
#![feature(coerce_unsized)]
|
||||||
#![feature(const_align_of_val)]
|
#![feature(const_align_of_val)]
|
||||||
#![feature(const_box)]
|
#![feature(const_box)]
|
||||||
#![feature(const_cow_is_borrowed)]
|
|
||||||
#![feature(const_eval_select)]
|
#![feature(const_eval_select)]
|
||||||
#![feature(const_heap)]
|
#![feature(const_heap)]
|
||||||
#![feature(const_maybe_uninit_write)]
|
#![feature(const_maybe_uninit_write)]
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
#![feature(btree_extract_if)]
|
#![feature(btree_extract_if)]
|
||||||
#![feature(cow_is_borrowed)]
|
#![feature(cow_is_borrowed)]
|
||||||
#![feature(const_cow_is_borrowed)]
|
|
||||||
#![feature(const_heap)]
|
#![feature(const_heap)]
|
||||||
#![cfg_attr(bootstrap, feature(const_mut_refs))]
|
#![cfg_attr(bootstrap, feature(const_mut_refs))]
|
||||||
#![feature(const_ptr_write)]
|
#![feature(const_ptr_write)]
|
||||||
|
Loading…
Reference in New Issue
Block a user