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

Sized trait should have #[doc(alias = "?")] #101267

Closed
Zalathar opened this issue Sep 1, 2022 · 1 comment · Fixed by #102102
Closed

Sized trait should have #[doc(alias = "?")] #101267

Zalathar opened this issue Sep 1, 2022 · 1 comment · Fixed by #102102
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools

Comments

@Zalathar
Copy link
Contributor

Zalathar commented Sep 1, 2022

Summary

Typing ? into the standard library’s search field shows aliased links to the Try trait (and the old try! macro), but there is no link to the Sized trait, which frequently appears as ?Sized in generic type bounds.

This could be a way to lead some users towards the documentation for this unusual use of the question mark character in trait-bound syntax.

Inspired by this reddit comment, since it turns out that the current docs would not have helped that person find their answer.

@Zalathar Zalathar added the A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools label Sep 1, 2022
@GuillaumeGomez
Copy link
Member

I opened #102102 to fix this. I also added ?Sized as a doc alias.

@bors bors closed this as completed in 15b4788 Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants