]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_metadata/src/rmeta/decoder.rs
Do not ICE if some foreign expansions were not encoded.
[rust.git] / compiler / rustc_metadata / src / rmeta / decoder.rs
index ffb7fdacd2275ce6ce204e0f235ccf28de1b9656..9b97d1a4762105efdea01851382e6f5793e1da44 100644 (file)
@@ -1646,8 +1646,6 @@ fn expn_hash_to_expn_id(&self, sess: &Session, index_guess: u32, hash: ExpnHash)
                     let i = ExpnIndex::from_u32(i);
                     if let Some(hash) = self.root.expn_hashes.get(self, i) {
                         map.insert(hash.decode(self), i);
-                    } else {
-                        panic!("Missing expn_hash entry for {:?}", i);
                     }
                 }
                 map