Skip to content

Commit 5300364

Browse files
committed
Impl HasInterner for IndexSet
1 parent 0525fc1 commit 5300364

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

chalk-ir/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ edition = "2018"
1313
lazy_static = "1.4.0"
1414
bitflags = "1.2.1"
1515
chalk-derive = { version = "0.76.0-dev.0", path = "../chalk-derive" }
16+
indexmap = "1.7.0"

chalk-ir/src/interner.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ pub trait HasInterner {
665665
type Interner: Interner;
666666
}
667667

668+
impl<T: HasInterner> HasInterner for indexmap::IndexSet<T> {
669+
type Interner = T::Interner;
670+
}
671+
668672
impl<T: HasInterner> HasInterner for [T] {
669673
type Interner = T::Interner;
670674
}

0 commit comments

Comments
 (0)