Skip to content

Commit f3e6d03

Browse files
committed
Do not ICE if some foreign expansions were not encoded.
The metadata encoder does not necessarily encode all expansions, only those which are referenced in other metadata fields.
1 parent d1def47 commit f3e6d03

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_metadata/src/rmeta/decoder.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1645,8 +1645,6 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
16451645
let i = ExpnIndex::from_u32(i);
16461646
if let Some(hash) = self.root.expn_hashes.get(self, i) {
16471647
map.insert(hash.decode(self), i);
1648-
} else {
1649-
panic!("Missing expn_hash entry for {:?}", i);
16501648
}
16511649
}
16521650
map

0 commit comments

Comments
 (0)