Skip to content

Commit 39f1259

Browse files
committed
cfg bootstrap
1 parent 4debbdc commit 39f1259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ extern "rust-intrinsic" {
10711071
// NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
10721072
// checks that prevent its use within `const fn`.
10731073
#[rustc_const_stable(feature = "const_transmute", since = "1.46.0")]
1074-
#[rustc_diagnostic_item = "transmute"]
1074+
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "transmute")]
10751075
pub fn transmute<T, U>(e: T) -> U;
10761076

10771077
/// Returns `true` if the actual type given as `T` requires drop

0 commit comments

Comments
 (0)