Use List::empty()
instead of mk_substs(&[])
.
This commit is contained in:
parent
c09f5b6a6b
commit
08f28f9447
5 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue