Skip to content

Commit dab6a15

Browse files
committed
Add self param to intern_substitution
1 parent be47af0 commit dab6a15

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

chalk-ir/src/interner.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
181181
/// `SubstitutionData::intern` (which will ultimately call this
182182
/// method).
183183
fn intern_substitution<E>(
184+
&self,
184185
data: impl IntoIterator<Item = Result<Parameter<Self>, E>>,
185186
) -> Result<Self::InternedSubstitution, E>;
186187

@@ -315,6 +316,7 @@ mod default {
315316
}
316317

317318
fn intern_substitution<E>(
319+
&self,
318320
data: impl IntoIterator<Item = Result<Parameter<ChalkIr>, E>>,
319321
) -> Result<Vec<Parameter<ChalkIr>>, E> {
320322
data.into_iter().collect()

chalk-ir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ impl<I: Interner> Substitution<I> {
12481248
) -> Result<Self, E> {
12491249
use crate::cast::Caster;
12501250
Ok(Substitution {
1251-
parameters: I::intern_substitution(parameters.into_iter().casted(interner))?,
1251+
parameters: I::intern_substitution(interner, parameters.into_iter().casted(interner))?,
12521252
})
12531253
}
12541254

0 commit comments

Comments
 (0)