mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Binders::wrap_empty -> wrap_empty_binders
This commit is contained in:
parent
2f5a77658b
commit
738174671a
3 changed files with 12 additions and 16 deletions
|
@ -92,13 +92,11 @@ pub fn param_idx(db: &dyn HirDatabase, id: TypeParamId) -> Option<usize> {
|
|||
generics(db.upcast(), id.parent).param_idx(id)
|
||||
}
|
||||
|
||||
impl<T> Binders<T> {
|
||||
pub fn wrap_empty(value: T) -> Self
|
||||
where
|
||||
T: TypeWalk,
|
||||
{
|
||||
Binders::empty(&Interner, value.shifted_in_from(DebruijnIndex::ONE))
|
||||
}
|
||||
pub fn wrap_empty_binders<T>(value: T) -> Binders<T>
|
||||
where
|
||||
T: TypeWalk,
|
||||
{
|
||||
Binders::empty(&Interner, value.shifted_in_from(DebruijnIndex::ONE))
|
||||
}
|
||||
|
||||
impl<T: TypeWalk> Binders<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue