aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
-rw-r--r--crates/hir_ty/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs
index 78ae3545a..7d4793c2f 100644
--- a/crates/hir_ty/src/lib.rs
+++ b/crates/hir_ty/src/lib.rs
@@ -35,7 +35,7 @@ use std::sync::Arc;
35use base_db::salsa; 35use base_db::salsa;
36use chalk_ir::{ 36use chalk_ir::{
37 cast::{CastTo, Caster}, 37 cast::{CastTo, Caster},
38 fold::Fold, 38 fold::{Fold, Shift},
39 interner::HasInterner, 39 interner::HasInterner,
40 UintTy, 40 UintTy,
41}; 41};
@@ -123,9 +123,9 @@ pub fn param_idx(db: &dyn HirDatabase, id: TypeParamId) -> Option<usize> {
123 123
124pub fn wrap_empty_binders<T>(value: T) -> Binders<T> 124pub fn wrap_empty_binders<T>(value: T) -> Binders<T>
125where 125where
126 T: TypeWalk + HasInterner<Interner = Interner>, 126 T: Fold<Interner, Result = T> + HasInterner<Interner = Interner>,
127{ 127{
128 Binders::empty(&Interner, value.shifted_in_from(DebruijnIndex::ONE)) 128 Binders::empty(&Interner, value.shifted_in_from(&Interner, DebruijnIndex::ONE))
129} 129}
130 130
131pub fn make_only_type_binders<T: HasInterner<Interner = Interner>>( 131pub fn make_only_type_binders<T: HasInterner<Interner = Interner>>(
@@ -187,7 +187,7 @@ impl CallableSig {
187 params_and_return: fn_ptr 187 params_and_return: fn_ptr
188 .substitution 188 .substitution
189 .clone() 189 .clone()
190 .shifted_out_to(DebruijnIndex::ONE) 190 .shifted_out_to(&Interner, DebruijnIndex::ONE)
191 .expect("unexpected lifetime vars in fn ptr") 191 .expect("unexpected lifetime vars in fn ptr")
192 .0 192 .0
193 .interned() 193 .interned()