Skip to content

Commit 505ca65

Browse files
committed
Remove CallableSig::from_substs
1 parent ac8fee0 commit 505ca65

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

crates/hir_ty/src/lib.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ impl CallableSig {
754754

755755
pub fn from_fn_ptr(fn_ptr: &FnPointer) -> CallableSig {
756756
CallableSig {
757-
// FIXME: what to do about lifetime params?
757+
// FIXME: what to do about lifetime params? -> return PolyFnSig
758758
params_and_return: fn_ptr
759759
.substs
760760
.clone()
@@ -767,16 +767,6 @@ impl CallableSig {
767767
}
768768
}
769769

770-
pub fn from_substs(substs: &Substitution) -> CallableSig {
771-
CallableSig {
772-
params_and_return: substs
773-
.iter(&Interner)
774-
.map(|arg| arg.assert_ty_ref(&Interner).clone())
775-
.collect(),
776-
is_varargs: false,
777-
}
778-
}
779-
780770
pub fn params(&self) -> &[Ty] {
781771
&self.params_and_return[0..self.params_and_return.len() - 1]
782772
}

0 commit comments

Comments
 (0)