Skip to content

Commit 14a2c8d

Browse files
Decode qualifs from defaulted trait associated consts
1 parent bcc44b8 commit 14a2c8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_metadata/rmeta/decoder.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1123,11 +1123,13 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
11231123
match self.kind(id) {
11241124
EntryKind::Const(qualif, _)
11251125
| EntryKind::AssocConst(
1126-
AssocContainer::ImplDefault | AssocContainer::ImplFinal,
1126+
AssocContainer::ImplDefault
1127+
| AssocContainer::ImplFinal
1128+
| AssocContainer::TraitWithDefault,
11271129
qualif,
11281130
_,
11291131
) => qualif,
1130-
_ => bug!(),
1132+
_ => bug!("mir_const_qualif: unexpected kind"),
11311133
}
11321134
}
11331135

0 commit comments

Comments
 (0)