From 32d9bdfcbee72048496ddb2317073479f6363a5d Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Thu, 5 May 2016 11:15:48 +0200 Subject: [PATCH] Make going from `&mut RefCell` to `&mut T` a no-op --- src/libcore/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 257027dad5ed2..63088ff43f820 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -272,8 +272,8 @@ impl Eq for Cell {} /// See the [module-level documentation](index.html) for more. #[stable(feature = "rust1", since = "1.0.0")] pub struct RefCell { - borrow: Cell, value: UnsafeCell, + borrow: Cell, } /// An enumeration of values returned from the `state` method on a `RefCell`.