Skip to content

Commit 925c00e

Browse files
committed
Auto merge of #108112 - nnethercote:clarify-iterator-interners, r=oli-obk,compiler-errors
Clarify iterator interners I found the iterator interners very confusing. This PR clarifies things. r? `@compiler-errors`
2 parents 6ba3b86 + 3b5f28b commit 925c00e

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)