Skip to content

Commit

Permalink
Remove outdated references to nll-rfc#40
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 17, 2022
1 parent 15d8c00 commit 1e53fab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,6 @@ impl<'b, T: ?Sized> RefMut<'b, T> {
where
F: FnOnce(&mut T) -> &mut U,
{
// FIXME(nll-rfc#40): fix borrow-check
let value = NonNull::from(f(&mut *orig));
RefMut { value, borrow: orig.borrow, marker: PhantomData }
}
Expand Down Expand Up @@ -1561,7 +1560,6 @@ impl<'b, T: ?Sized> RefMut<'b, T> {
where
F: FnOnce(&mut T) -> Option<&mut U>,
{
// FIXME(nll-rfc#40): fix borrow-check
// SAFETY: function holds onto an exclusive reference for the duration
// of its call through `orig`, and the pointer is only de-referenced
// inside of the function call never allowing the exclusive reference to
Expand Down

0 comments on commit 1e53fab

Please sign in to comment.