mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add HasInterner bounds
This commit is contained in:
parent
926bfef0ef
commit
7e541e69b1
6 changed files with 35 additions and 14 deletions
|
@ -8,7 +8,7 @@
|
|||
use std::{iter, sync::Arc};
|
||||
|
||||
use base_db::CrateId;
|
||||
use chalk_ir::{cast::Cast, Mutability, Safety};
|
||||
use chalk_ir::{cast::Cast, interner::HasInterner, Mutability, Safety};
|
||||
use hir_def::{
|
||||
adt::StructKind,
|
||||
builtin_type::BuiltinType,
|
||||
|
@ -1307,6 +1307,6 @@ pub(crate) fn lower_to_chalk_mutability(m: hir_def::type_ref::Mutability) -> Mut
|
|||
}
|
||||
}
|
||||
|
||||
fn make_binders<T>(generics: &Generics, value: T) -> Binders<T> {
|
||||
fn make_binders<T: HasInterner<Interner = Interner>>(generics: &Generics, value: T) -> Binders<T> {
|
||||
crate::make_only_type_binders(generics.len(), value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue