diff options
| author | bors <bors@rust-lang.org> | 2016-07-16 17:40:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-16 17:40:28 -0700 |
| commit | 103e5c9b37d6cdc4552b353cdf3fd2772dae760c (patch) | |
| tree | 6e1576298a7a79f80e2aa3d71e370b894366386c /src/libcore | |
| parent | b5ad2779ea155f6a1b2b61415bc804dcbb23400c (diff) | |
| parent | 45f8427d47f6ac4ae2f661fde47be0da3efc6a4b (diff) | |
| download | rust-103e5c9b37d6cdc4552b353cdf3fd2772dae760c.tar.gz rust-103e5c9b37d6cdc4552b353cdf3fd2772dae760c.zip | |
Auto merge of #34852 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 7 pull requests - Successful merges: #33362, #34768, #34837, #34838, #34847, #34848, #34849 - Failed merges: #33951, #34850
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/hash/sip.rs | 16 | ||||
| -rw-r--r-- | src/libcore/lib.rs | 13 | ||||
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
3 files changed, 17 insertions, 14 deletions
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index c52c0b0730b..4a806a3c986 100644 --- a/src/libcore/hash/sip.rs +++ b/src/libcore/hash/sip.rs @@ -18,7 +18,7 @@ use ptr; /// An implementation of SipHash 1-3. /// /// See: https://131002.net/siphash/ -#[unstable(feature = "sip_hash_13", issue = "29754")] +#[unstable(feature = "sip_hash_13", issue = "34767")] #[derive(Debug, Clone, Default)] pub struct SipHasher13 { hasher: Hasher<Sip13Rounds>, @@ -27,7 +27,7 @@ pub struct SipHasher13 { /// An implementation of SipHash 2-4. /// /// See: https://131002.net/siphash/ -#[unstable(feature = "sip_hash_13", issue = "29754")] +#[unstable(feature = "sip_hash_13", issue = "34767")] #[derive(Debug, Clone, Default)] pub struct SipHasher24 { hasher: Hasher<Sip24Rounds>, @@ -154,14 +154,14 @@ impl SipHasher { impl SipHasher13 { /// Creates a new `SipHasher13` with the two initial keys set to 0. #[inline] - #[unstable(feature = "sip_hash_13", issue = "29754")] + #[unstable(feature = "sip_hash_13", issue = "34767")] pub fn new() -> SipHasher13 { SipHasher13::new_with_keys(0, 0) } /// Creates a `SipHasher13` that is keyed off the provided keys. #[inline] - #[unstable(feature = "sip_hash_13", issue = "29754")] + #[unstable(feature = "sip_hash_13", issue = "34767")] pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher13 { SipHasher13 { hasher: Hasher::new_with_keys(key0, key1) @@ -172,14 +172,14 @@ impl SipHasher13 { impl SipHasher24 { /// Creates a new `SipHasher24` with the two initial keys set to 0. #[inline] - #[unstable(feature = "sip_hash_13", issue = "29754")] + #[unstable(feature = "sip_hash_13", issue = "34767")] pub fn new() -> SipHasher24 { SipHasher24::new_with_keys(0, 0) } /// Creates a `SipHasher24` that is keyed off the provided keys. #[inline] - #[unstable(feature = "sip_hash_13", issue = "29754")] + #[unstable(feature = "sip_hash_13", issue = "34767")] pub fn new_with_keys(key0: u64, key1: u64) -> SipHasher24 { SipHasher24 { hasher: Hasher::new_with_keys(key0, key1) @@ -232,7 +232,7 @@ impl super::Hasher for SipHasher { } } -#[unstable(feature = "sip_hash_13", issue = "29754")] +#[unstable(feature = "sip_hash_13", issue = "34767")] impl super::Hasher for SipHasher13 { #[inline] fn write(&mut self, msg: &[u8]) { @@ -245,7 +245,7 @@ impl super::Hasher for SipHasher13 { } } -#[unstable(feature = "sip_hash_13", issue = "29754")] +#[unstable(feature = "sip_hash_13", issue = "34767")] impl super::Hasher for SipHasher24 { #[inline] fn write(&mut self, msg: &[u8]) { diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index e849369d647..0ad1f671f15 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -25,6 +25,8 @@ //! //! # How to use the core library //! +//! Please note that all of these details are currently not considered stable. +//! // FIXME: Fill me in with more detail when the interface settles //! This library is built on the assumption of a few existing symbols: //! @@ -34,11 +36,12 @@ //! These functions are often provided by the system libc, but can also be //! provided by the [rlibc crate](https://crates.io/crates/rlibc). //! -//! * `rust_begin_unwind` - This function takes three arguments, a -//! `fmt::Arguments`, a `&str`, and a `u32`. These three arguments dictate -//! the panic message, the file at which panic was invoked, and the line. -//! It is up to consumers of this core library to define this panic -//! function; it is only required to never return. +//! * `rust_begin_panic` - This function takes three arguments, a +//! `fmt::Arguments`, a `&'static str`, and a `u32`. These three arguments +//! dictate the panic message, the file at which panic was invoked, and the +//! line. It is up to consumers of this core library to define this panic +//! function; it is only required to never return. This requires a `lang` +//! attribute named `panic_fmt`. // Since libcore defines many fundamental lang items, all tests live in a // separate crate, libcoretest, to avoid bizarre issues. diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index fcdbde0d19f..97648cc3469 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -2318,7 +2318,7 @@ impl usize { /// let num = 12.4_f32; /// let inf = f32::INFINITY; /// let zero = 0f32; -/// let sub: f32 = 0.000000000000000000000000000000000000011754942; +/// let sub: f32 = 1.1754942e-38; /// let nan = f32::NAN; /// /// assert_eq!(num.classify(), FpCategory::Normal); |
