Skip to content

Commit 5834ba1

Browse files
committed
remove Canonical::unchecked_rebind, it's unused
1 parent f3ce557 commit 5834ba1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

compiler/rustc_type_ir/src/canonical.rs

-10
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,6 @@ impl<I: Interner, V> Canonical<I, V> {
5757
let Canonical { defining_opaque_types, max_universe, variables, value } = self;
5858
Canonical { defining_opaque_types, max_universe, variables, value: map_op(value) }
5959
}
60-
61-
/// Allows you to map the `value` of a canonical while keeping the same set of
62-
/// bound variables.
63-
///
64-
/// **WARNING:** This function is very easy to mis-use, hence the name! See
65-
/// the comment of [Canonical::unchecked_map] for more details.
66-
pub fn unchecked_rebind<W>(self, value: W) -> Canonical<I, W> {
67-
let Canonical { defining_opaque_types, max_universe, variables, value: _ } = self;
68-
Canonical { defining_opaque_types, max_universe, variables, value }
69-
}
7060
}
7161

7262
impl<I: Interner, V: fmt::Display> fmt::Display for Canonical<I, V> {

0 commit comments

Comments
 (0)