From f54df449072895f258876adf9545fe3a0840492f Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Thu, 11 Apr 2019 07:56:35 -0600 Subject: [PATCH] Remove note about transmute for float bitpatterns. --- src/libcore/intrinsics.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 7756a6f71dbd6..2f725db22ca6a 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -737,16 +737,6 @@ extern "rust-intrinsic" { /// /// There are a few things that `transmute` is really useful for. /// - /// Getting the bitpattern of a floating point type (or, more generally, - /// type punning, when `T` and `U` aren't pointers): - /// - /// ``` - /// let bitpattern = unsafe { - /// std::mem::transmute::(1.0) - /// }; - /// assert_eq!(bitpattern, 0x3F800000); - /// ``` - /// /// Turning a pointer into a function pointer. This is *not* portable to /// machines where function pointers and data pointers have different sizes. ///