We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4debbdc commit 39f1259Copy full SHA for 39f1259
library/core/src/intrinsics.rs
@@ -1071,7 +1071,7 @@ extern "rust-intrinsic" {
1071
// NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
1072
// checks that prevent its use within `const fn`.
1073
#[rustc_const_stable(feature = "const_transmute", since = "1.46.0")]
1074
- #[rustc_diagnostic_item = "transmute"]
+ #[cfg_attr(not(bootstrap), rustc_diagnostic_item = "transmute")]
1075
pub fn transmute<T, U>(e: T) -> U;
1076
1077
/// Returns `true` if the actual type given as `T` requires drop
0 commit comments