Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Lokathor opened this issue Jul 18, 2022 · 3 comments · Fixed by #106751
Closed

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

Lokathor opened this issue Jul 18, 2022 · 3 comments · Fixed by #106751
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Lokathor
Copy link
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
@Lokathor Lokathor added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Jul 18, 2022
@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. and removed A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Sep 25, 2022
@GuillaumeGomez
Copy link
Member

I took this screenshot in stable docs:

image

So it's fixed. Closing then.

@taiki-e
Copy link
Member

taiki-e commented Sep 25, 2022

@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
Copy link
Member

Oh you're right. Re-opening.

Noratrieb added a commit to Noratrieb/rust that referenced this issue Jan 12, 2023
…aumeGomez

Fix rendering 'const' in header for intrinsics

Fixes rust-lang#99398
@bors bors closed this as completed in e9b7069 Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants