Function rustc_infer::infer::error_reporting::need_type_info::closure_as_fn_str
source · fn closure_as_fn_str<'tcx>(infcx: &InferCtxt<'tcx>, ty: Ty<'tcx>) -> StringExpand description
We don’t want to directly use ty_to_string for closures as their type isn’t really
something users are familiar with. Directly printing the fn_sig of closures also
doesn’t work as they actually use the “rust-call” API.