]> git.lizzy.rs Git - rust.git/commitdiff
cfg bootstrap
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 19 Sep 2020 09:17:44 +0000 (11:17 +0200)
committerBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 19 Sep 2020 09:33:11 +0000 (11:33 +0200)
library/core/src/intrinsics.rs

index f3f0a2f02c57d411965b53161ab42ecf0e90b0f0..abb9bfec127be00caf8770413751b42241e446ed 100644 (file)
     // NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
     // checks that prevent its use within `const fn`.
     #[rustc_const_stable(feature = "const_transmute", since = "1.46.0")]
-    #[rustc_diagnostic_item = "transmute"]
+    #[cfg_attr(not(bootstrap), rustc_diagnostic_item = "transmute")]
     pub fn transmute<T, U>(e: T) -> U;
 
     /// Returns `true` if the actual type given as `T` requires drop