mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 12:43:36 +00:00
Remove no-longer used IdFunctor::map_id
This commit is contained in:
parent
18bb8c61a9
commit
db7295fa96
@ -4,14 +4,6 @@ use std::mem;
|
||||
pub trait IdFunctor: Sized {
|
||||
type Inner;
|
||||
|
||||
#[inline]
|
||||
fn map_id<F>(self, mut f: F) -> Self
|
||||
where
|
||||
F: FnMut(Self::Inner) -> Self::Inner,
|
||||
{
|
||||
self.try_map_id::<_, !>(|value| Ok(f(value))).into_ok()
|
||||
}
|
||||
|
||||
fn try_map_id<F, E>(self, f: F) -> Result<Self, E>
|
||||
where
|
||||
F: FnMut(Self::Inner) -> Result<Self::Inner, E>;
|
||||
|
@ -25,7 +25,6 @@
|
||||
#![feature(once_cell)]
|
||||
#![feature(test)]
|
||||
#![feature(thread_id_value)]
|
||||
#![feature(unwrap_infallible)]
|
||||
#![allow(rustc::default_hash_types)]
|
||||
#![deny(unaligned_references)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user