Skip to content

Commit 5834ba1

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

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎compiler/rustc_type_ir/src/canonical.rs‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,6 @@ impl<I: Interner, V> Canonical<I, V> {
5757
letCanonical{ 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-
pubfnunchecked_rebind<W>(self,value:W) -> Canonical<I,W>{
67-
letCanonical{ 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::DisplayforCanonical<I,V>{

0 commit comments

Comments
 (0)