1
Fork 0

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

@ -2530,7 +2530,7 @@ impl<'tcx> ConstantKind<'tcx> {
{
InternalSubsts::identity_for_item(tcx, parent_did.to_def_id())
} else {
tcx.mk_substs(&[])
List::empty()
};
debug!(?parent_substs);