We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071d8b1 commit d38dbcbCopy full SHA for d38dbcb
compiler/rustc_metadata/src/rmeta/decoder.rs
@@ -947,7 +947,12 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
947
}
948
949
fn get_type(&self, id: DefIndex, tcx: TyCtxt<'tcx>) -> Ty<'tcx> {
950
- self.root.tables.ty.get(self, id).unwrap().decode((self, tcx))
+ self.root
951
+ .tables
952
+ .ty
953
+ .get(self, id)
954
+ .unwrap_or_else(|| panic!("Not a type: {:?}", id))
955
+ .decode((self, tcx))
956
957
958
fn get_stability(&self, id: DefIndex) -> Option<attr::Stability> {
0 commit comments