Skip to content

Commit fab71dd

Browse files
committed
Revert "Deprecate std::cell::RefCell::borrow_state"
This reverts commit dc2d505.
1 parent 1c365ce commit fab71dd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/libcore/cell.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,6 @@ pub struct RefCell<T: ?Sized> {
572572
/// An enumeration of values returned from the `state` method on a `RefCell<T>`.
573573
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
574574
#[unstable(feature = "borrow_state", issue = "27733")]
575-
#[rustc_deprecated(since = "1.15.0", reason = "use `try_borrow` instead")]
576-
#[allow(deprecated)]
577575
pub enum BorrowState {
578576
/// The cell is currently being read, there is at least one active `borrow`.
579577
Reading,
@@ -788,8 +786,6 @@ impl<T: ?Sized> RefCell<T> {
788786
/// }
789787
/// ```
790788
#[unstable(feature = "borrow_state", issue = "27733")]
791-
#[rustc_deprecated(since = "1.15.0", reason = "use `try_borrow` instead")]
792-
#[allow(deprecated)]
793789
#[inline]
794790
pub fn borrow_state(&self) -> BorrowState {
795791
let borrow = self.borrow.get();

0 commit comments

Comments
 (0)