Reservation impls in rustdoc #87826
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
F-rustc_attrs
Internal rustc attributes gated on the `#[rustc_attrs]` feature gate.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I’ve been browsing rustdoc and just noticed a very confusing blanket impl on
Infallible
.Confusing because it’s obviously in conflict with the explicit
From<!> for Infallible
as well as the genericFrom<T> for T
implementation. Only after looking at the source code I could find out that this isn’t even an implementation at all. Searching for existing issues, the original issue on this topic is closed and concludedThis comment however is only visible on the page of the
From
trait itself.Another example of this problem, the same
impl
on theOption<T>
type.I’m also confused by the fact that the
impl
is only shown on some types instd
but not all. E.g. on thecmp::Ordering
type you can’t see it at all.I don’t feel like it would be a difficult change to just make this
From
impl entirely invisible in rustdoc. I don’t see any value in displaying it, and it can be very confusing, especially when displayed without the accompanying comment.@rustbot label T-rustdoc, F-rustc_attrs, T-libs-api, A-docs, C-bug
Tagging
T-libs-api, A-docs
as well because the situation could immediately and easily be somewhat improved by adding the “this impl does not yet exist” explanation docs to thefrom
method, as that one’s at least being displayed everywhere (if you click the[+]
button sufficiently often).The text was updated successfully, but these errors were encountered: