1
Fork 0

incr. comp.: Don't export impl_stable_hash_via_hash!() and warn about using it.

This commit is contained in:
Michael Woerister 2022-04-19 10:43:09 +02:00
parent e2661bac6d
commit c0be619724
8 changed files with 38 additions and 37 deletions

View file

@ -76,9 +76,10 @@ rustc_index::newtype_index! {
/// integers starting at zero, so a mapping that maps all or most nodes within
/// an "item-like" to something else can be implemented by a `Vec` instead of a
/// tree or hash map.
#[derive(HashStable_Generic)]
pub struct ItemLocalId { .. }
}
rustc_data_structures::impl_stable_hash_via_hash!(ItemLocalId);
impl ItemLocalId {
/// Signal local id which should never be used.
pub const INVALID: ItemLocalId = ItemLocalId::MAX;