Skip to content

Commit ea83d6f

Browse files
committed
Use List::empty() instead of mk_substs(&[]).
1 parent 5b0dbc4 commit ea83d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl<'gcc, 'tcx> MiscMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
383383
tcx,
384384
ty::ParamEnv::reveal_all(),
385385
def_id,
386-
tcx.mk_substs(&[]),
386+
ty::List::empty(),
387387
)
388388
.unwrap().unwrap(),
389389
),

0 commit comments

Comments
 (0)