Skip to content

Commit dc1f1a8

Browse files
committed
Added const_hash tracking issue id
1 parent 5f9899b commit dc1f1a8

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

library/core/src/hash/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ pub trait Hasher {
567567
}
568568

569569
#[stable(feature = "indirect_hasher_impl", since = "1.22.0")]
570-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
570+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
571571
impl<H: ~const Hasher + ?Sized> const Hasher for &mut H {
572572
fn finish(&self) -> u64 {
573573
(**self).finish()
@@ -776,7 +776,7 @@ impl<H> fmt::Debug for BuildHasherDefault<H> {
776776
}
777777

778778
#[stable(since = "1.7.0", feature = "build_hasher")]
779-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
779+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
780780
impl<H: ~const Default + Hasher> const BuildHasher for BuildHasherDefault<H> {
781781
type Hasher = H;
782782

@@ -819,7 +819,7 @@ mod impls {
819819
macro_rules! impl_write {
820820
($(($ty:ident, $meth:ident),)*) => {$(
821821
#[stable(feature = "rust1", since = "1.0.0")]
822-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
822+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
823823
impl const Hash for $ty {
824824
#[inline]
825825
fn hash<H: ~const Hasher>(&self, state: &mut H) {
@@ -856,7 +856,7 @@ mod impls {
856856
}
857857

858858
#[stable(feature = "rust1", since = "1.0.0")]
859-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
859+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
860860
impl const Hash for bool {
861861
#[inline]
862862
fn hash<H: ~const Hasher>(&self, state: &mut H) {
@@ -865,7 +865,7 @@ mod impls {
865865
}
866866

867867
#[stable(feature = "rust1", since = "1.0.0")]
868-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
868+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
869869
impl const Hash for char {
870870
#[inline]
871871
fn hash<H: ~const Hasher>(&self, state: &mut H) {
@@ -874,7 +874,7 @@ mod impls {
874874
}
875875

876876
#[stable(feature = "rust1", since = "1.0.0")]
877-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
877+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
878878
impl const Hash for str {
879879
#[inline]
880880
fn hash<H: ~const Hasher>(&self, state: &mut H) {
@@ -883,7 +883,7 @@ mod impls {
883883
}
884884

885885
#[stable(feature = "never_hash", since = "1.29.0")]
886-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
886+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
887887
impl const Hash for ! {
888888
#[inline]
889889
fn hash<H: ~const Hasher>(&self, _: &mut H) {
@@ -894,7 +894,7 @@ mod impls {
894894
macro_rules! impl_hash_tuple {
895895
() => (
896896
#[stable(feature = "rust1", since = "1.0.0")]
897-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
897+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
898898
impl const Hash for () {
899899
#[inline]
900900
fn hash<H: ~const Hasher>(&self, _state: &mut H) {}
@@ -905,7 +905,7 @@ mod impls {
905905
maybe_tuple_doc! {
906906
$($name)+ @
907907
#[stable(feature = "rust1", since = "1.0.0")]
908-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
908+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
909909
impl<$($name: ~const Hash),+> const Hash for ($($name,)+) where last_type!($($name,)+): ?Sized {
910910
#[allow(non_snake_case)]
911911
#[inline]
@@ -952,7 +952,7 @@ mod impls {
952952
impl_hash_tuple! { T B C D E F G H I J K L }
953953

954954
#[stable(feature = "rust1", since = "1.0.0")]
955-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
955+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
956956
impl<T: ~const Hash> const Hash for [T] {
957957
#[inline]
958958
fn hash<H: ~const Hasher>(&self, state: &mut H) {
@@ -962,7 +962,7 @@ mod impls {
962962
}
963963

964964
#[stable(feature = "rust1", since = "1.0.0")]
965-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
965+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
966966
impl<T: ?Sized + ~const Hash> const Hash for &T {
967967
#[inline]
968968
fn hash<H: ~const Hasher>(&self, state: &mut H) {
@@ -971,7 +971,7 @@ mod impls {
971971
}
972972

973973
#[stable(feature = "rust1", since = "1.0.0")]
974-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
974+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
975975
impl<T: ?Sized + ~const Hash> const Hash for &mut T {
976976
#[inline]
977977
fn hash<H: Hasher>(&self, state: &mut H) {

library/core/src/hash/sip.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl SipHasher {
150150
since = "1.13.0",
151151
note = "use `std::collections::hash_map::DefaultHasher` instead"
152152
)]
153-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
153+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
154154
#[must_use]
155155
pub const fn new() -> SipHasher {
156156
SipHasher::new_with_keys(0, 0)
@@ -163,7 +163,7 @@ impl SipHasher {
163163
since = "1.13.0",
164164
note = "use `std::collections::hash_map::DefaultHasher` instead"
165165
)]
166-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
166+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
167167
#[must_use]
168168
pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher {
169169
SipHasher(SipHasher24 { hasher: Hasher::new_with_keys(key0, key1) })
@@ -178,7 +178,7 @@ impl SipHasher13 {
178178
since = "1.13.0",
179179
note = "use `std::collections::hash_map::DefaultHasher` instead"
180180
)]
181-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
181+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
182182
pub const fn new() -> SipHasher13 {
183183
SipHasher13::new_with_keys(0, 0)
184184
}
@@ -190,7 +190,7 @@ impl SipHasher13 {
190190
since = "1.13.0",
191191
note = "use `std::collections::hash_map::DefaultHasher` instead"
192192
)]
193-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
193+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
194194
pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher13 {
195195
SipHasher13 { hasher: Hasher::new_with_keys(key0, key1) }
196196
}
@@ -224,7 +224,7 @@ impl<S: Sip> Hasher<S> {
224224
}
225225

226226
#[stable(feature = "rust1", since = "1.0.0")]
227-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
227+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
228228
impl const super::Hasher for SipHasher {
229229
#[inline]
230230
fn write(&mut self, msg: &[u8]) {
@@ -243,7 +243,7 @@ impl const super::Hasher for SipHasher {
243243
}
244244

245245
#[unstable(feature = "hashmap_internals", issue = "none")]
246-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
246+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
247247
impl const super::Hasher for SipHasher13
248248
where
249249
Hasher<Sip13Rounds>: ~const super::Hasher,

library/std/src/collections/hash/map.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,15 +3161,15 @@ impl DefaultHasher {
31613161
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
31623162
#[inline]
31633163
#[allow(deprecated)]
3164-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
3164+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
31653165
#[must_use]
31663166
pub const fn new() -> DefaultHasher {
31673167
DefaultHasher(SipHasher13::new_with_keys(0, 0))
31683168
}
31693169
}
31703170

31713171
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
3172-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
3172+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
31733173
impl const Default for DefaultHasher {
31743174
/// Creates a new `DefaultHasher` using [`new`].
31753175
/// See its documentation for more.
@@ -3182,7 +3182,7 @@ impl const Default for DefaultHasher {
31823182
}
31833183

31843184
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
3185-
#[rustc_const_unstable(feature = "const_hash", issue = "none")]
3185+
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
31863186
impl const Hasher for DefaultHasher {
31873187
// The underlying `SipHasher13` doesn't override the other
31883188
// `write_*` methods, so it's ok not to forward them here.

0 commit comments

Comments
 (0)