remove const_hash feature leftovers
This commit is contained in:
parent
34432f7494
commit
52666238cf
@ -147,9 +147,8 @@ impl SipHasher {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
||||||
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub const fn new() -> SipHasher {
|
pub fn new() -> SipHasher {
|
||||||
SipHasher::new_with_keys(0, 0)
|
SipHasher::new_with_keys(0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,9 +156,8 @@ pub const fn new() -> SipHasher {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
||||||
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher {
|
pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher {
|
||||||
SipHasher(SipHasher24 { hasher: Hasher::new_with_keys(key0, key1) })
|
SipHasher(SipHasher24 { hasher: Hasher::new_with_keys(key0, key1) })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -169,8 +167,7 @@ impl SipHasher13 {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "hashmap_internals", issue = "none")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
||||||
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
|
pub fn new() -> SipHasher13 {
|
||||||
pub const fn new() -> SipHasher13 {
|
|
||||||
SipHasher13::new_with_keys(0, 0)
|
SipHasher13::new_with_keys(0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,8 +175,7 @@ pub const fn new() -> SipHasher13 {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "hashmap_internals", issue = "none")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
#[deprecated(since = "1.13.0", note = "use `std::hash::DefaultHasher` instead")]
|
||||||
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
|
pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher13 {
|
||||||
pub const fn new_with_keys(key0: u64, key1: u64) -> SipHasher13 {
|
|
||||||
SipHasher13 { hasher: Hasher::new_with_keys(key0, key1) }
|
SipHasher13 { hasher: Hasher::new_with_keys(key0, key1) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,6 @@
|
|||||||
#![feature(const_eval_select)]
|
#![feature(const_eval_select)]
|
||||||
#![feature(const_exact_div)]
|
#![feature(const_exact_div)]
|
||||||
#![feature(const_float_methods)]
|
#![feature(const_float_methods)]
|
||||||
#![feature(const_hash)]
|
|
||||||
#![feature(const_heap)]
|
#![feature(const_heap)]
|
||||||
#![feature(const_nonnull_new)]
|
#![feature(const_nonnull_new)]
|
||||||
#![feature(const_num_midpoint)]
|
#![feature(const_num_midpoint)]
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#![feature(const_bigint_helper_methods)]
|
#![feature(const_bigint_helper_methods)]
|
||||||
#![feature(const_black_box)]
|
#![feature(const_black_box)]
|
||||||
#![feature(const_eval_select)]
|
#![feature(const_eval_select)]
|
||||||
#![feature(const_hash)]
|
|
||||||
#![feature(const_heap)]
|
#![feature(const_heap)]
|
||||||
#![feature(const_nonnull_new)]
|
#![feature(const_nonnull_new)]
|
||||||
#![feature(const_num_midpoint)]
|
#![feature(const_num_midpoint)]
|
||||||
|
@ -105,9 +105,8 @@ impl DefaultHasher {
|
|||||||
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
|
#[stable(feature = "hashmap_default_hasher", since = "1.13.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
#[rustc_const_unstable(feature = "const_hash", issue = "104061")]
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub const fn new() -> DefaultHasher {
|
pub fn new() -> DefaultHasher {
|
||||||
DefaultHasher(SipHasher13::new_with_keys(0, 0))
|
DefaultHasher(SipHasher13::new_with_keys(0, 0))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -416,7 +416,6 @@
|
|||||||
// Only for const-ness:
|
// Only for const-ness:
|
||||||
// tidy-alphabetical-start
|
// tidy-alphabetical-start
|
||||||
#![feature(const_collections_with_hasher)]
|
#![feature(const_collections_with_hasher)]
|
||||||
#![feature(const_hash)]
|
|
||||||
#![feature(thread_local_internals)]
|
#![feature(thread_local_internals)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user