-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rustdoc displays negative impls for traits identically to standard impls #21310
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
Eek. |
It seems the issue has not been solved completely. On a trait's page that lists all its implementors, it's still wrong. Checkout http://doc.rust-lang.org/std/marker/trait.Send.html for example. |
@sellibitze you mentioned http://doc.rust-lang.org/std/rc/struct.Rc.html in IRC, but I'm clearly seeing |
After further discussion, http://doc.rust-lang.org/std/marker/trait.Send.html is still not showing |
Maybe the right thing to do is to just not mention Rc on trait.Send at all. Either that, or adding a '!' in there. |
Or add the "!", but show them in a separate section below. |
1.0 polish, "P-veryhigh" |
This isn't really possible to test in an automatic way, since the only traits you can negative impl are `Send` and `Sync`, and the implementors page for those only exists in libstd. Closes #21310
When documenting negative impls for the Send and Sync traits (added by RFC 19) rustdoc currently displays the negative impls identically to positive impls.
As an example, there's currently no indication that the Send impl for MutexGuard is actually opting out of the Send trait rather than adding an implementation of it.
The text was updated successfully, but these errors were encountered: