Skip to content

Commit 80309d2

Browse files
committed
Require T: Hash for IdAliasStore<T>
1 parent a1fc11f commit 80309d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chalk-solve/src/display/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<T> Default for IdAliasStore<T> {
6060
}
6161
}
6262

63-
impl<T: Copy> IdAliasStore<T> {
63+
impl<T: Copy + Eq + core::hash::Hash> IdAliasStore<T> {
6464
fn alias_for_id_name(&mut self, id: T, name: String) -> String {
6565
let next_unused_for_name = &mut self.next_unused_for_name;
6666
let alias = *self.aliases.entry(id).or_insert_with(|| {

0 commit comments

Comments
 (0)