-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: Show tag / badge / icon / emoji in the sidebar for unsafe, deprecated and unstable items #132108
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
Comments
Yes, exactly what I meant. Nice symbols too :) |
Personally it seems odd to prefix the symbols in the sidebar, when in the module view they are suffixed. |
I don't suppose there's any demand for a "this got stabilized recently!!!" icon? If so then I nominate 🎉 because apparently there isn't a diploma emoji to go with the beaker/test tube theme for experimental stuff I assume there won't be one but I want to make sure it's considered |
IMO rustdoc already has enough machinery that is only used for std/core/alloc and nothing else. |
This is so welcome! How many times have I hopefully clicked on a promising sounding name, only to find it’s not for normal use… |
possible duplicate of #67869, although this issue is more descriptive in exactly what changes are desired. |
Currently unsafe, deprecated and unstable items are shown with different labels in a module's list of items:
I think it would be nice to also add these to the sidebar for types and traits.
Maybe this requires icons for "Deprecated" and "Experimental" as well to not make the sidebar to wide.
The text was updated successfully, but these errors were encountered: