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

rustdoc: Fix search-index entry for inherent-associated-const #31596

Merged
merged 2 commits into from Feb 13, 2016

Conversation

Projects
None yet
5 participants
@mitaa
Contributor

mitaa commented Feb 12, 2016

No description provided.

mitaa added some commits Feb 12, 2016

Fix inherent-associated-const search result links
Normal constants have their own page while associated constants are
embedded within their parent-items page.
Fix associated item identifiers
Search results use the mapping found in `ItemType::to_static_str` for
the identifier, which could not be found on the page in the case of
associated items.
@rust-highfive

This comment has been minimized.

Collaborator

rust-highfive commented Feb 12, 2016

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@mitaa

This comment has been minimized.

Contributor

mitaa commented Feb 12, 2016

@mitaa

This comment has been minimized.

Contributor

mitaa commented Feb 12, 2016

I've noticed that associated types, unlike associated consts, in impls are not recorded in the search-index because of noisy search results.

Right now inherent-associated-types don't work yet but I would imagine that whatever solution is applied to them should be used for inherent-associated-constants too.

edit: (there is currently no distinction between an implemented associated-item from a trait and an inherent-associated-item)

@alexcrichton

This comment has been minimized.

Member

alexcrichton commented Feb 12, 2016

@bors: r+ 938202c

Thanks!

@bors

This comment has been minimized.

Contributor

bors commented Feb 13, 2016

⌛️ Testing commit 938202c with merge c438802...

@bors bors merged commit 938202c into rust-lang:master Feb 13, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details

@mitaa mitaa deleted the mitaa:rdoc_assoc_item branch Feb 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment