From 1e53fab55a0435be8bf4bf3ff9810ce2c73d5977 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 16 May 2022 17:22:51 -0700 Subject: [PATCH] Remove outdated references to nll-rfc#40 --- library/core/src/cell.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index fa0206c349a..d43be569c5b 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -1520,7 +1520,6 @@ pub fn map(mut orig: RefMut<'b, T>, f: F) -> RefMut<'b, U> 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 } } @@ -1561,7 +1560,6 @@ pub fn filter_map(mut orig: RefMut<'b, T>, f: F) -> Result 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