Remove outdated references to nll-rfc#40
This commit is contained in:
parent
15d8c00820
commit
1e53fab55a
@ -1520,7 +1520,6 @@ pub fn map<U: ?Sized, F>(mut orig: RefMut<'b, T>, f: F) -> RefMut<'b, U>
|
|||||||
where
|
where
|
||||||
F: FnOnce(&mut T) -> &mut U,
|
F: FnOnce(&mut T) -> &mut U,
|
||||||
{
|
{
|
||||||
// FIXME(nll-rfc#40): fix borrow-check
|
|
||||||
let value = NonNull::from(f(&mut *orig));
|
let value = NonNull::from(f(&mut *orig));
|
||||||
RefMut { value, borrow: orig.borrow, marker: PhantomData }
|
RefMut { value, borrow: orig.borrow, marker: PhantomData }
|
||||||
}
|
}
|
||||||
@ -1561,7 +1560,6 @@ pub fn filter_map<U: ?Sized, F>(mut orig: RefMut<'b, T>, f: F) -> Result<RefMut<
|
|||||||
where
|
where
|
||||||
F: FnOnce(&mut T) -> Option<&mut U>,
|
F: FnOnce(&mut T) -> Option<&mut U>,
|
||||||
{
|
{
|
||||||
// FIXME(nll-rfc#40): fix borrow-check
|
|
||||||
// SAFETY: function holds onto an exclusive reference for the duration
|
// SAFETY: function holds onto an exclusive reference for the duration
|
||||||
// of its call through `orig`, and the pointer is only de-referenced
|
// of its call through `orig`, and the pointer is only de-referenced
|
||||||
// inside of the function call never allowing the exclusive reference to
|
// inside of the function call never allowing the exclusive reference to
|
||||||
|
Loading…
Reference in New Issue
Block a user