1
Fork 0

Avoid specialization for AttrId deserialization

This commit is contained in:
bjorn3 2023-12-31 20:40:09 +00:00
parent 8d598b0d58
commit 47936b4813
4 changed files with 30 additions and 23 deletions

View file

@ -741,6 +741,10 @@ impl<'a, 'tcx> SpanDecoder for CacheDecoder<'a, 'tcx> {
panic!("Failed to convert DefPathHash {def_path_hash:?}")
})
}
fn decode_attr_id(&mut self) -> rustc_span::AttrId {
panic!("cannot decode `AttrId` with `CacheDecoder`");
}
}
impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx UnordSet<LocalDefId> {