Skip to content

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

Closed
@Lokathor

Description

@Lokathor

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

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

    No branches or pull requests

    Issue actions