Skip to content

Commit

Permalink
Decode qualifs from defaulted trait associated consts
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed May 2, 2020
1 parent bcc44b8 commit 14a2c8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/librustc_metadata/rmeta/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}

Expand Down

0 comments on commit 14a2c8d

Please sign in to comment.