mk_fn_sig
Giving the item type a name `T` avoids duplication.
For more information about how rustc works, see the rustc dev guide.