Error on define_opaques entries without any opaques actually referenced

This commit is contained in:
Oli Scherer 2025-02-25 10:31:11 +00:00
parent 43e39260f9
commit 69a1bb8bdb
6 changed files with 17 additions and 7 deletions

View file

@ -1308,7 +1308,7 @@ impl Attribute {
pub struct AttributeMap<'tcx> {
pub map: SortedMap<ItemLocalId, &'tcx [Attribute]>,
/// Preprocessed `#[define_opaque]` attribute.
pub define_opaque: Option<&'tcx [LocalDefId]>,
pub define_opaque: Option<&'tcx [(Span, LocalDefId)]>,
// Only present when the crate hash is needed.
pub opt_hash: Option<Fingerprint>,
}