Auto merge of #96082 - michaelwoerister:less_impl_stable_hash_via_hash, r=compiler-errors
incr. comp.: Don't export impl_stable_hash_via_hash!() and warn about using it. Fixes https://github.com/rust-lang/rust/issues/96013.
This commit is contained in:
commit
27af517549
8 changed files with 38 additions and 37 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue