Skip to content

core::mem::transmute doesn't list const in the signature #99398

Closed
@Lokathor

Description

@Lokathor
Contributor

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

added
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools
on Jul 18, 2022
added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
and removed
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools
on Sep 25, 2022
GuillaumeGomez

GuillaumeGomez commented on Sep 25, 2022

@GuillaumeGomez
Member

I took this screenshot in stable docs:

image

So it's fixed. Closing then.

taiki-e

taiki-e commented on Sep 25, 2022

@taiki-e
Member

@GuillaumeGomez I don't think this has been fixed yet. (note that this issue is about core, not std)

https://doc.rust-lang.org/stable/core/intrinsics/fn.transmute.html

core

GuillaumeGomez

GuillaumeGomez commented on Sep 25, 2022

@GuillaumeGomez
Member

Oh you're right. Re-opening.

added 2 commits that reference this issue on Jan 12, 2023

Rollup merge of rust-lang#106751 - clubby789:const-intrinsic, r=Guill…

a5e1b35

Rollup merge of rust-lang#106751 - clubby789:const-intrinsic, r=Guill…

e9b7069
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @GuillaumeGomez@Lokathor@taiki-e

      Issue actions

        `core::mem::transmute` doesn't list `const` in the signature · Issue #99398 · rust-lang/rust