diff options
author | Florian Diebold <[email protected]> | 2021-04-03 16:49:29 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-04-08 13:08:55 +0100 |
commit | 7e541e69b1eaab3c242c864a0930cb263d2cbaf5 (patch) | |
tree | 88fb29aa7e0b782efc9f91ec5676d93e4db4ffd7 /crates/hir_ty/src/walk.rs | |
parent | 926bfef0efc5caca2a04a50beaba9127338e21e0 (diff) |
Add HasInterner bounds
Diffstat (limited to 'crates/hir_ty/src/walk.rs')
-rw-r--r-- | crates/hir_ty/src/walk.rs | 4 |
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 | ||
4 | use std::mem; | 4 | use std::mem; |
5 | 5 | ||
6 | use chalk_ir::DebruijnIndex; | 6 | use chalk_ir::{interner::HasInterner, DebruijnIndex}; |
7 | 7 | ||
8 | use crate::{ | 8 | use 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 | ||
323 | impl<T: TypeWalk> TypeWalk for Binders<T> { | 323 | impl<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 | } |