aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/walk.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-03 16:49:29 +0100
committerFlorian Diebold <[email protected]>2021-04-08 13:08:55 +0100
commit7e541e69b1eaab3c242c864a0930cb263d2cbaf5 (patch)
tree88fb29aa7e0b782efc9f91ec5676d93e4db4ffd7 /crates/hir_ty/src/walk.rs
parent926bfef0efc5caca2a04a50beaba9127338e21e0 (diff)
Add HasInterner bounds
Diffstat (limited to 'crates/hir_ty/src/walk.rs')
-rw-r--r--crates/hir_ty/src/walk.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/walk.rs b/crates/hir_ty/src/walk.rs
index 873d563c0..c1aecdafc 100644
--- a/crates/hir_ty/src/walk.rs
+++ b/crates/hir_ty/src/walk.rs
@@ -3,7 +3,7 @@
3 3
4use std::mem; 4use std::mem;
5 5
6use chalk_ir::DebruijnIndex; 6use chalk_ir::{interner::HasInterner, DebruijnIndex};
7 7
8use crate::{ 8use crate::{
9 utils::make_mut_slice, AliasEq, AliasTy, Binders, CallableSig, FnSubst, GenericArg, 9 utils::make_mut_slice, AliasEq, AliasTy, Binders, CallableSig, FnSubst, GenericArg,
@@ -320,7 +320,7 @@ impl TypeWalk for Substitution {
320 } 320 }
321} 321}
322 322
323impl<T: TypeWalk> TypeWalk for Binders<T> { 323impl<T: TypeWalk + HasInterner<Interner = Interner>> TypeWalk for Binders<T> {
324 fn walk(&self, f: &mut impl FnMut(&Ty)) { 324 fn walk(&self, f: &mut impl FnMut(&Ty)) {
325 self.skip_binders().walk(f); 325 self.skip_binders().walk(f);
326 } 326 }