-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Nightly docs missing relevant float parsing impls #31948
Comments
Since AFAIK one can't override this behavior with an explicit
|
To me when thinking about #31903 it seemed like a mild antipattern to have public interfaces you want documented in a |
Well it used to be that way, then (IIRC) you moved the impls into |
FWIW, I thought of another related testcase which is broken in the same way // foo.rs
extern crate bar;
pub use bar::Foo; // bar.rs
pub struct Foo;
mod private {
trait Bar {}
impl Bar for ::Foo {}
} (the impl-inlining code doesn't look at privacy at all) AIUI this would need to be solved in the same or similar way as necessary for
|
Oh maybe it was privacy related in that case... |
rustdoc: refine cross-crate impl inlining This changes the current rule that impls within `doc(hidden)` modules aren't inlined, to only inlining impls where the implemented trait and type are reachable in documentation. fixes #14586 fixes #31948 .. and also applies the reachability checking to cross-crate links. fixes #28480 r? @alexcrichton
#31903 hid all trait impls from
doc(hidden)
modules. This was a step in the right direction, since it removed several dead links (mentions of traits that really should be hidden). Unfortunately currentlyFromStr
is implemented in the hidden modulecore::num::dec2flt
and thus the current nightly doesn't document this impl at all (neither on the trait's page nor on the primitive pages). For the same reason,ParseFloatError
doesn't seem to implement any traits (exceptError
o.O perhaps because of the bound on the associated typeFromStr::Error
).The text was updated successfully, but these errors were encountered: