Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustdoc: Don't record associated items from trait impls in the search-index #31837
Conversation
rust-highfive
assigned
alexcrichton
Feb 23, 2016
mitaa
force-pushed the
mitaa:rdoc-inherent-assoc
branch
from
cf99705
to
063b4b4
Feb 23, 2016
alexcrichton
reviewed
Feb 23, 2016
| true | ||
| } | ||
| clean::ImplItem(ref i) => { | ||
| self.parent_is_trait_impl = i.trait_.is_some(); |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Feb 23, 2016
Member
I think you can have an impl-in-an-impl, so this flag may need to be preserved and restored across the recursive calls?
mitaa
force-pushed the
mitaa:rdoc-inherent-assoc
branch
2 times, most recently
from
426d9e7
to
f240bb4
Feb 23, 2016
This comment has been minimized.
This comment has been minimized.
|
I pushed an update restoring the flag across recursive calls. |
alexcrichton
reviewed
Feb 23, 2016
src/librustdoc/html/render.rs
Outdated
| @@ -1140,6 +1145,7 @@ impl DocFolder for Cache { | |||
| } | |||
| _ => false | |||
| }; | |||
| let parent_is_trait_impl = self.parent_is_trait_impl; | |||
This comment has been minimized.
This comment has been minimized.
mitaa
added some commits
Feb 23, 2016
mitaa
force-pushed the
mitaa:rdoc-inherent-assoc
branch
from
f240bb4
to
f5df7e0
Feb 23, 2016
This comment has been minimized.
This comment has been minimized.
Yeah.. sorry, about that. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Feb 24, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Wed, Feb 24, 2016 at 11:49 AM, bors notifications@github.com wrote:
|
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Feb 25, 2016
bors
added a commit
that referenced
this pull request
Feb 25, 2016
bors
added a commit
that referenced
this pull request
Feb 25, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Feb 25, 2016
bors
added a commit
that referenced
this pull request
Feb 25, 2016
bors
merged commit f5df7e0
into
rust-lang:master
Feb 25, 2016
mitaa
deleted the
mitaa:rdoc-inherent-assoc
branch
Feb 25, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
mitaa commentedFeb 23, 2016
This effectively only records associated items from either inherent impls or trait definitions in the search-index.
fixes #31808
r? @alexcrichton