]> git.lizzy.rs Git - rust.git/commitdiff
assert_ne and tracking issue
authorest31 <MTest31@outlook.com>
Mon, 13 Mar 2017 09:25:50 +0000 (10:25 +0100)
committerest31 <MTest31@outlook.com>
Tue, 18 Apr 2017 00:43:16 +0000 (02:43 +0200)
src/libstd/f32.rs
src/libstd/f64.rs

index 5ec01e2e215cc93df7322f1f180c0fbc9174d1d1..76b629fb1d4cde88a7291a8ff2dc4ee93f5f77a9 100644 (file)
@@ -1238,11 +1238,11 @@ pub fn atanh(self) -> f32 {
     ///
     /// ```
     /// #![feature(float_bits_conv)]
-    /// assert!((1f32).to_bits() != 1f32 as u32); // to_bits() is not casting!
+    /// assert_ne!((1f32).to_bits(), 1f32 as u32); // to_bits() is not casting!
     /// assert_eq!((12.5f32).to_bits(), 0x41480000);
     ///
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn to_bits(self) -> u32 {
         unsafe { ::mem::transmute(self) }
@@ -1270,7 +1270,7 @@ pub fn to_bits(self) -> u32 {
     /// // Example for a signaling NaN value:
     /// assert_eq!(f32::from_bits(0x7F800001), Err(()));
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn from_bits(v: u32) -> Result<Self, ()> {
         match v {
index 96d38f67ee2146849a7477887a01b620a063af6f..f553e580f0fa9e63f9aea8a18541188dfa883ab2 100644 (file)
@@ -1134,7 +1134,7 @@ fn log_wrapper<F: Fn(f64) -> f64>(self, log_fn: F) -> f64 {
     /// assert_eq!((12.5f64).to_bits(), 0x4029000000000000);
     ///
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn to_bits(self) -> u64 {
         unsafe { ::mem::transmute(self) }
@@ -1162,7 +1162,7 @@ pub fn to_bits(self) -> u64 {
     /// // Example for a signaling NaN value:
     /// assert_eq!(f64::from_bits(0x7FF0000000000001), Err(()));
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn from_bits(v: u64) -> Result<Self, ()> {
         match v {