Use List::empty() instead of mk_substs(&[]).

This commit is contained in:
Nicholas Nethercote 2023-02-20 14:52:23 +11:00
parent c09f5b6a6b
commit 08f28f9447
5 changed files with 8 additions and 8 deletions

View file

@ -383,7 +383,7 @@ impl<'gcc, 'tcx> MiscMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
tcx,
ty::ParamEnv::reveal_all(),
def_id,
tcx.mk_substs(&[]),
ty::List::empty(),
)
.unwrap().unwrap(),
),