Decode qualifs from defaulted trait associated consts
This commit is contained in:
parent
bcc44b8e02
commit
14a2c8d042
@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user