Decode qualifs from defaulted trait associated consts

This commit is contained in:
Dylan MacKenzie 2020-05-02 14:17:04 -07:00
parent bcc44b8e02
commit 14a2c8d042

View File

@ -1123,11 +1123,13 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
match self.kind(id) {
EntryKind::Const(qualif, _)
| EntryKind::AssocConst(
AssocContainer::ImplDefault | AssocContainer::ImplFinal,
AssocContainer::ImplDefault
| AssocContainer::ImplFinal
| AssocContainer::TraitWithDefault,
qualif,
_,
) => qualif,
_ => bug!(),
_ => bug!("mir_const_qualif: unexpected kind"),
}
}