Remove one more usage of mk_substs_trait
This commit is contained in:
parent
1bf80249ae
commit
4ffe3bdf99
3 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue