1
Fork 0

Remove one more usage of mk_substs_trait

This commit is contained in:
Oli Scherer 2022-12-13 10:49:30 +00:00
parent 1bf80249ae
commit 4ffe3bdf99
3 changed files with 8 additions and 4 deletions

View file

@ -1847,7 +1847,7 @@ impl<'tcx> Operand<'tcx> {
pub fn function_handle(
tcx: TyCtxt<'tcx>,
def_id: DefId,
substs: SubstsRef<'tcx>,
substs: impl IntoIterator<Item = GenericArg<'tcx>>,
span: Span,
) -> Self {
let ty = tcx.mk_fn_def(def_id, substs);