@@ -225,7 +225,6 @@ impl<B: ?Sized + ToOwned> Cow<'_, B> { |
|
|
225 |
225 |
/// assert!(!bull.is_borrowed()); |
226 |
226 |
/// ``` |
227 |
227 |
#[unstable(feature = "cow_is_borrowed", issue = "65143")] |
228 |
|
-#[rustc_const_unstable(feature = "const_cow_is_borrowed", issue = "65143")] |
229 |
228 |
pub const fn is_borrowed(&self) -> bool { |
230 |
229 |
match *self { |
231 |
230 |
Borrowed(_) => true, |
@@ -248,7 +247,6 @@ impl<B: ?Sized + ToOwned> Cow<'_, B> { |
|
|
248 |
247 |
/// assert!(!bull.is_owned()); |
249 |
248 |
/// ``` |
250 |
249 |
#[unstable(feature = "cow_is_borrowed", issue = "65143")] |
251 |
|
-#[rustc_const_unstable(feature = "const_cow_is_borrowed", issue = "65143")] |
252 |
250 |
pub const fn is_owned(&self) -> bool { |
253 |
251 |
!self.is_borrowed() |
254 |
252 |
} |