aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lower.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/lower.rs
parent926bfef0efc5caca2a04a50beaba9127338e21e0 (diff)
Add HasInterner bounds
Diffstat (limited to 'crates/hir_ty/src/lower.rs')
-rw-r--r--crates/hir_ty/src/lower.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/lower.rs b/crates/hir_ty/src/lower.rs
index e6903e189..d4ba707b4 100644
--- a/crates/hir_ty/src/lower.rs
+++ b/crates/hir_ty/src/lower.rs
@@ -8,7 +8,7 @@
8use std::{iter, sync::Arc}; 8use std::{iter, sync::Arc};
9 9
10use base_db::CrateId; 10use base_db::CrateId;
11use chalk_ir::{cast::Cast, Mutability, Safety}; 11use chalk_ir::{cast::Cast, interner::HasInterner, Mutability, Safety};
12use hir_def::{ 12use hir_def::{
13 adt::StructKind, 13 adt::StructKind,
14 builtin_type::BuiltinType, 14 builtin_type::BuiltinType,
@@ -1307,6 +1307,6 @@ pub(crate) fn lower_to_chalk_mutability(m: hir_def::type_ref::Mutability) -> Mut
1307 } 1307 }
1308} 1308}
1309 1309
1310fn make_binders<T>(generics: &Generics, value: T) -> Binders<T> { 1310fn make_binders<T: HasInterner<Interner = Interner>>(generics: &Generics, value: T) -> Binders<T> {
1311 crate::make_only_type_binders(generics.len(), value) 1311 crate::make_only_type_binders(generics.len(), value)
1312} 1312}