Inconsistent API doc generation: missing _::next
referent in search.
#1738
Labels
T-docs
Topic: documentation
_::next
referent in search.
#1738
Version
Declared dependency:
tokio = { version = "=0.2.0-alpha.6", features = ["process"] }
Platform
$ uname -a Linux penguin 4.19.69-06666-g6c4f8cbba24e #1 SMP PREEMPT Fri Sep 6 22:15:24 PDT 2019 x86_64 GNU/Linux
Description
Summary: Generated documentation shows a promising search result for
_::next
which links to a page without any information about such a method.Details:
When I search for
next
or_::next
in either my locally generatedcargo doc
or https://docs.rs/tokio I see a promising search result that says:However, in both my local docs and the
docs.rs
site, when I click that link, I'm taken to a page fortrait _ : Future
and there is nonext
method anywhere. In fact, the entire page does not have the string "next" according to my browser.You can see the search here: https://docs.rs/tokio/0.2.0-alpha.6/tokio/?search=next
You can see the search referent here: https://docs.rs/tokio/0.2.0-alpha.6/tokio/prelude/trait._.html#method.next
Other Investigation:
docs.rs
and it has the same behavior.next
method defined in code which was somehow hidden from doc gen.Bug Source:
This may be a bug in
tokio
RPC docs, a bug in rust's api doc toolchain, or a combination of the two. I'm filing this issue here, but if this is a doc toolchain bug, I will gladly pursue that in the right toolchain issue tracker.How I got here:
I'm trying to learn how to iterate asynchronously over the items in a
Stream
and 0.2.0 is my first dive into tokio. I failed to find how to consume aStream
from API docs and googling. A friend pointed me towards_::next
search. (I consider there to be a documentation clarity bug/improvement request aboutStream
that I will file separately.)The text was updated successfully, but these errors were encountered: