about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-09-19 11:17:44 +0200
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-09-19 11:33:11 +0200
commit39f125918d05176d711ef9da3c0bbd4c861bb14e (patch)
tree86b366ff41e3e4f22b6ac395d0eb2ea3f63d30be
parent4debbdc6b9cfe35295ba0e245b0aad8f8079ec8a (diff)
downloadrust-39f125918d05176d711ef9da3c0bbd4c861bb14e.tar.gz
rust-39f125918d05176d711ef9da3c0bbd4c861bb14e.zip
cfg bootstrap
-rw-r--r--library/core/src/intrinsics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs
index f3f0a2f02c5..abb9bfec127 100644
--- a/library/core/src/intrinsics.rs
+++ b/library/core/src/intrinsics.rs
@@ -1071,7 +1071,7 @@ extern "rust-intrinsic" {
     // 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