Skip to content

Commit 3fc5469

Browse files
committed
Remove Binder::split.
It's unused.
1 parent fac7753 commit 3fc5469

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

compiler/rustc_type_ir/src/binder.rs

-15
Original file line numberDiff line numberDiff line change
@@ -247,21 +247,6 @@ impl<I: Interner, T> Binder<I, T> {
247247
// `self.value` is equivalent to `self.skip_binder()`
248248
if self.value.has_escaping_bound_vars() { None } else { Some(self.skip_binder()) }
249249
}
250-
251-
/// Splits the contents into two things that share the same binder
252-
/// level as the original, returning two distinct binders.
253-
///
254-
/// `f` should consider bound regions at depth 1 to be free, and
255-
/// anything it produces with bound regions at depth 1 will be
256-
/// bound in the resulting return values.
257-
pub fn split<U, V, F>(self, f: F) -> (Binder<I, U>, Binder<I, V>)
258-
where
259-
F: FnOnce(T) -> (U, V),
260-
{
261-
let Binder { value, bound_vars } = self;
262-
let (u, v) = f(value);
263-
(Binder { value: u, bound_vars }, Binder { value: v, bound_vars })
264-
}
265250
}
266251

267252
impl<I: Interner, T> Binder<I, Option<T>> {

0 commit comments

Comments
 (0)