mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
cfg bootstrap
This commit is contained in:
parent
4debbdc6b9
commit
39f125918d
@ -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…
Reference in New Issue
Block a user