Skip to content
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: Don't record associated items from trait impls in the search-index #31837

Merged
merged 2 commits into from
Feb 25, 2016

Conversation

mitaa
Copy link
Contributor

@mitaa mitaa commented Feb 23, 2016

This effectively only records associated items from either inherent impls or trait definitions in the search-index.

fixes #31808

r? @alexcrichton

true
}
clean::ImplItem(ref i) => {
self.parent_is_trait_impl = i.trait_.is_some();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 mitaa force-pushed the rdoc-inherent-assoc branch 2 times, most recently from 426d9e7 to f240bb4 Compare February 23, 2016 20:00
@mitaa
Copy link
Contributor Author

mitaa commented Feb 23, 2016

I pushed an update restoring the flag across recursive calls.

@@ -1140,6 +1145,7 @@ impl DocFolder for Cache {
}
_ => false
};
let parent_is_trait_impl = self.parent_is_trait_impl;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be saved before the match above which modifies it?

@mitaa
Copy link
Contributor Author

mitaa commented Feb 23, 2016

Shouldn't this be saved before the match above which modifies it?

Yeah.. sorry, about that.
(updated)

@alexcrichton
Copy link
Member

@bors: r+ f5df7e0

@bors
Copy link
Contributor

bors commented Feb 24, 2016

⌛ Testing commit f5df7e0 with merge a46718e...

@bors
Copy link
Contributor

bors commented Feb 24, 2016

💔 Test failed - auto-win-gnu-32-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

On Wed, Feb 24, 2016 at 11:49 AM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-win-gnu-32-nopt-t
http://buildbot.rust-lang.org/builders/auto-win-gnu-32-nopt-t/builds/3210


Reply to this email directly or view it on GitHub
#31837 (comment).

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 25, 2016
…ichton

This effectively only records associated items from either inherent impls or trait definitions in the search-index.

fixes rust-lang#31808

r? @alexcrichton
bors added a commit that referenced this pull request Feb 25, 2016
@bors bors merged commit f5df7e0 into rust-lang:master Feb 25, 2016
@mitaa mitaa deleted the rdoc-inherent-assoc branch February 25, 2016 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustdoc: implementing trait with associated const for primitive causes panic (regression)
3 participants