cfg bootstrap
This commit is contained in:
parent
4debbdc6b9
commit
39f125918d
1 changed files with 1 additions and 1 deletions
|
@ -1071,7 +1071,7 @@ extern "rust-intrinsic" {
|
||||||
// NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
|
// NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
|
||||||
// checks that prevent its use within `const fn`.
|
// checks that prevent its use within `const fn`.
|
||||||
#[rustc_const_stable(feature = "const_transmute", since = "1.46.0")]
|
#[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;
|
pub fn transmute<T, U>(e: T) -> U;
|
||||||
|
|
||||||
/// Returns `true` if the actual type given as `T` requires drop
|
/// Returns `true` if the actual type given as `T` requires drop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue