-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[rustdoc] Implementors section of Sync (and other similar traits) should separate implementors and !implementors #51129
Comments
Would it work out if the impls were just sorted apart, rather than giving an entirely new section heading to "negative impls"? That might be easier to implement. |
@QuietMisdreavus yes, just sorted seperately would be A+ |
Excellent! Some mentoring instructions: The code that displays all these impls is right here: rust/src/librustdoc/html/render.rs Lines 2860 to 2900 in 5205ae8
All the collections it's partitioning at the start of that contain |
I can start on this one |
@SLaabsDev Thanks! Were the instructions i gave a good start? If you need any help, please ask me! |
@QuietMisdreavus Yes, the instructions were very helpful! I have it to a point where it is sorting with negative implementors showing first. One question I have is outside of the polarity does the order of implementors need to be preserved? |
@SLaabsDev That's probably best addressed by all of @rust-lang/docs but what i would say is "don't worry about it", since we currently don't do a very good job of keeping that ordering in the first place. This could be a good place to enforce a good ordering, but you don't have to do that in your PR. (If you asking to choose between |
The
!Sync
implementations and theSync
implementations really ought to be separated apart, otherwise it makes it harder to skim.https://doc.rust-lang.org/stable/std/marker/trait.Sync.html#implementors
The text was updated successfully, but these errors were encountered: