Skip to content

Commit 3b5f28b

Browse files
committed
Replace more mk_foo calls with infer_foo.
1 parent 8c9976a commit 3b5f28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
363363
tcx,
364364
ty::ParamEnv::reveal_all(),
365365
start_id,
366-
tcx.mk_substs(::std::iter::once(ty::subst::GenericArg::from(main_ret_ty))),
366+
tcx.intern_substs(&[ty::subst::GenericArg::from(main_ret_ty)]),
367367
)
368368
.unwrap()
369369
.unwrap();

0 commit comments

Comments
 (0)