File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ impl CallableSig {
754
754
755
755
pub fn from_fn_ptr ( fn_ptr : & FnPointer ) -> CallableSig {
756
756
CallableSig {
757
- // FIXME: what to do about lifetime params?
757
+ // FIXME: what to do about lifetime params? -> return PolyFnSig
758
758
params_and_return : fn_ptr
759
759
. substs
760
760
. clone ( )
@@ -767,16 +767,6 @@ impl CallableSig {
767
767
}
768
768
}
769
769
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
-
780
770
pub fn params ( & self ) -> & [ Ty ] {
781
771
& self . params_and_return [ 0 ..self . params_and_return . len ( ) - 1 ]
782
772
}
You can’t perform that action at this time.
0 commit comments