-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-rustdoc-jsArea: Rustdoc's JS front-endArea: Rustdoc's JS front-endA-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Description
initially discovered when searching rustdoc internals for render_into
reproduction code
pub struct Empty;
impl Iterator for Empty {
type Item = ();
fn next(&mut self) -> Option<Self::Item> {
None
}
}
reproduction steps
cargo doc --open --no-deps
- search for
count
expected result
Empty::count
shows up as a result, since there is a method callable via that path
actual result
no search results
additional considerations
this could lead to flooding the search results, but hopefully that is no longer an issue once #140782 is fixed.
version info
rustdoc 1.86.0 (05f9846f8 2025-03-31)
binary: rustdoc
commit-hash: 05f9846f893b09a1be1fc8560e33fc3c815cfecb
commit-date: 2025-03-31
host: x86_64-unknown-linux-gnu
release: 1.86.0
LLVM version: 19.1.7
Metadata
Metadata
Assignees
Labels
A-rustdoc-jsArea: Rustdoc's JS front-endArea: Rustdoc's JS front-endA-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.