Closed
Description
core::mem::transmute
and std::mem::transmute
are both listed as const in 1.56 according to the "since" info on the right, but only the std
version lists const
in the actual signature.
core:
pub unsafe extern "rust-intrinsic" fn transmute<T, U>(e: T) -> U
std:
pub const unsafe extern "rust-intrinsic" fn transmute<T, U>(e: T) -> U
Activity
GuillaumeGomez commentedon Sep 25, 2022
I took this screenshot in stable docs:
So it's fixed. Closing then.
taiki-e commentedon Sep 25, 2022
@GuillaumeGomez I don't think this has been fixed yet. (note that this issue is about
core
, notstd
)https://doc.rust-lang.org/stable/core/intrinsics/fn.transmute.html
GuillaumeGomez commentedon Sep 25, 2022
Oh you're right. Re-opening.
Rollup merge of rust-lang#106751 - clubby789:const-intrinsic, r=Guill…
Rollup merge of rust-lang#106751 - clubby789:const-intrinsic, r=Guill…