From dc1f1a8e970f65cbc8d5dc7fbdd466c06c8082e9 Mon Sep 17 00:00:00 2001 From: onestacked Date: Sun, 6 Nov 2022 18:01:44 +0100 Subject: [PATCH] Added `const_hash` tracking issue id --- library/core/src/hash/mod.rs | 24 ++++++++++++------------ library/core/src/hash/sip.rs | 12 ++++++------ library/std/src/collections/hash/map.rs | 6 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/library/core/src/hash/mod.rs b/library/core/src/hash/mod.rs index b66475e43ac..d8bb92fcc8d 100644 --- a/library/core/src/hash/mod.rs +++ b/library/core/src/hash/mod.rs @@ -567,7 +567,7 @@ pub trait Hasher { } #[stable(feature = "indirect_hasher_impl", since = "1.22.0")] -#[rustc_const_unstable(feature = "const_hash", issue = "none")] +#[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hasher for &mut H { fn finish(&self) -> u64 { (**self).finish() @@ -776,7 +776,7 @@ impl fmt::Debug for BuildHasherDefault { } #[stable(since = "1.7.0", feature = "build_hasher")] -#[rustc_const_unstable(feature = "const_hash", issue = "none")] +#[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const BuildHasher for BuildHasherDefault { type Hasher = H; @@ -819,7 +819,7 @@ mod impls { macro_rules! impl_write { ($(($ty:ident, $meth:ident),)*) => {$( #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for $ty { #[inline] fn hash(&self, state: &mut H) { @@ -856,7 +856,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for bool { #[inline] fn hash(&self, state: &mut H) { @@ -865,7 +865,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for char { #[inline] fn hash(&self, state: &mut H) { @@ -874,7 +874,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for str { #[inline] fn hash(&self, state: &mut H) { @@ -883,7 +883,7 @@ mod impls { } #[stable(feature = "never_hash", since = "1.29.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for ! { #[inline] fn hash(&self, _: &mut H) { @@ -894,7 +894,7 @@ mod impls { macro_rules! impl_hash_tuple { () => ( #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for () { #[inline] fn hash(&self, _state: &mut H) {} @@ -905,7 +905,7 @@ mod impls { maybe_tuple_doc! { $($name)+ @ #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl<$($name: ~const Hash),+> const Hash for ($($name,)+) where last_type!($($name,)+): ?Sized { #[allow(non_snake_case)] #[inline] @@ -952,7 +952,7 @@ mod impls { impl_hash_tuple! { T B C D E F G H I J K L } #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for [T] { #[inline] fn hash(&self, state: &mut H) { @@ -962,7 +962,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for &T { #[inline] fn hash(&self, state: &mut H) { @@ -971,7 +971,7 @@ mod impls { } #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hash for &mut T { #[inline] fn hash(&self, state: &mut H) { diff --git a/library/core/src/hash/sip.rs b/library/core/src/hash/sip.rs index b389ae4a019..51581d21089 100644 --- a/library/core/src/hash/sip.rs +++ b/library/core/src/hash/sip.rs @@ -150,7 +150,7 @@ impl SipHasher { since = "1.13.0", note = "use `std::collections::hash_map::DefaultHasher` instead" )] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] #[must_use] pub const fn new() -> SipHasher { SipHasher::new_with_keys(0, 0) @@ -163,7 +163,7 @@ impl SipHasher { since = "1.13.0", note = "use `std::collections::hash_map::DefaultHasher` instead" )] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] #[must_use] pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher { SipHasher(SipHasher24 { hasher: Hasher::new_with_keys(key0, key1) }) @@ -178,7 +178,7 @@ impl SipHasher13 { since = "1.13.0", note = "use `std::collections::hash_map::DefaultHasher` instead" )] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] pub const fn new() -> SipHasher13 { SipHasher13::new_with_keys(0, 0) } @@ -190,7 +190,7 @@ impl SipHasher13 { since = "1.13.0", note = "use `std::collections::hash_map::DefaultHasher` instead" )] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher13 { SipHasher13 { hasher: Hasher::new_with_keys(key0, key1) } } @@ -224,7 +224,7 @@ impl Hasher { } #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_unstable(feature = "const_hash", issue = "none")] +#[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const super::Hasher for SipHasher { #[inline] fn write(&mut self, msg: &[u8]) { @@ -243,7 +243,7 @@ impl const super::Hasher for SipHasher { } #[unstable(feature = "hashmap_internals", issue = "none")] -#[rustc_const_unstable(feature = "const_hash", issue = "none")] +#[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const super::Hasher for SipHasher13 where Hasher: ~const super::Hasher, diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index 1963c24b6e9..df490358827 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -3161,7 +3161,7 @@ impl DefaultHasher { #[stable(feature = "hashmap_default_hasher", since = "1.13.0")] #[inline] #[allow(deprecated)] - #[rustc_const_unstable(feature = "const_hash", issue = "none")] + #[rustc_const_unstable(feature = "const_hash", issue = "104061")] #[must_use] pub const fn new() -> DefaultHasher { DefaultHasher(SipHasher13::new_with_keys(0, 0)) @@ -3169,7 +3169,7 @@ impl DefaultHasher { } #[stable(feature = "hashmap_default_hasher", since = "1.13.0")] -#[rustc_const_unstable(feature = "const_hash", issue = "none")] +#[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Default for DefaultHasher { /// Creates a new `DefaultHasher` using [`new`]. /// See its documentation for more. @@ -3182,7 +3182,7 @@ impl const Default for DefaultHasher { } #[stable(feature = "hashmap_default_hasher", since = "1.13.0")] -#[rustc_const_unstable(feature = "const_hash", issue = "none")] +#[rustc_const_unstable(feature = "const_hash", issue = "104061")] impl const Hasher for DefaultHasher { // The underlying `SipHasher13` doesn't override the other // `write_*` methods, so it's ok not to forward them here.