Skip to content
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

Self keyword is documented as SelfTy #98828

Open
CAD97 opened this issue Jul 2, 2022 · 3 comments
Open

Self keyword is documented as SelfTy #98828

CAD97 opened this issue Jul 2, 2022 · 3 comments
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@CAD97
Copy link
Contributor

CAD97 commented Jul 2, 2022

This should just be Self. "SelfTy" is not a keyword.

The doc page cannot be https://doc.rust-lang.org/nightly/std/keyword.Self.html on a case-insensitive host because that will conflict with https://doc.rust-lang.org/nightly/std/keyword.self.html.

IMHO: the ideal would be https://doc.rust-lang.org/nightly/std/keyword.Self%20(type).html as the URL, and to properly display the keyword as Self.


https://doc.rust-lang.org/nightly/std/keyword.SelfTy.html

rustdoc keywords list

rustdoc keyword page for SelfTy

@rustbot modify labels +A-rustdoc

@CAD97 CAD97 added the C-bug Category: This is a bug. label Jul 2, 2022
@CAD97
Copy link
Contributor Author

CAD97 commented Jul 2, 2022

I did search for open issues, but

Previously closed as an intentional hack: #92722
Because of case-insensitivity: #83678

@CAD97
Copy link
Contributor Author

CAD97 commented Jul 2, 2022

Correct label

@rustbot modify labels +T-rustdoc

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 2, 2022
@GuillaumeGomez
Copy link
Member

We could hack something to make it appear as Self whereas the URL to the page remains SelfTy. I'll write something and propose a few ideas to see where it leads us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants