Skip to content

Commit db7295f

Browse files
committed
Remove no-longer used IdFunctor::map_id
1 parent 18bb8c6 commit db7295f

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

compiler/rustc_data_structures/src/functor.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ use std::mem;
44
pub trait IdFunctor: Sized {
55
type Inner;
66

7-
#[inline]
8-
fn map_id<F>(self, mut f: F) -> Self
9-
where
10-
F: FnMut(Self::Inner) -> Self::Inner,
11-
{
12-
self.try_map_id::<_, !>(|value| Ok(f(value))).into_ok()
13-
}
14-
157
fn try_map_id<F, E>(self, f: F) -> Result<Self, E>
168
where
179
F: FnMut(Self::Inner) -> Result<Self::Inner, E>;

compiler/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#![feature(once_cell)]
2626
#![feature(test)]
2727
#![feature(thread_id_value)]
28-
#![feature(unwrap_infallible)]
2928
#![allow(rustc::default_hash_types)]
3029
#![deny(unaligned_references)]
3130

0 commit comments

Comments
 (0)