Skip to content

Commit 4f5cb46

Browse files
committed
---
yaml --- r: 116467 b: refs/heads/snap-stage3 c: f71f97b h: refs/heads/master i: 116465: a081ff2 116463: 96959e8 v: v3
1 parent 5bb9296 commit 4f5cb46

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0dbfa5f6110d96ea26f124b6dc8487e1bec3da8a
4+
refs/heads/snap-stage3: f71f97b7c2905c7254f87a9185576939dbbb7010
55
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustdoc/clean/inline.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@ fn build_impl(tcx: &ty::ctxt, did: ast::DefId) -> clean::Item {
250250
let associated_trait = csearch::get_impl_trait(tcx, did);
251251
let attrs = load_attrs(tcx, did);
252252
let ty = ty::lookup_item_type(tcx, did);
253-
let methods = csearch::get_impl_methods(&tcx.sess.cstore, did).iter().map(|did| {
253+
let methods = csearch::get_impl_methods(&tcx.sess.cstore,
254+
did).iter().filter_map(|did| {
255+
let method = ty::method(tcx, *did);
256+
if method.vis != ast::Public && associated_trait.is_none() {
257+
return None
258+
}
254259
let mut item = match ty::method(tcx, *did).clean() {
255260
clean::Provided(item) => item,
256261
clean::Required(item) => item,
@@ -268,7 +273,7 @@ fn build_impl(tcx: &ty::ctxt, did: ast::DefId) -> clean::Item {
268273
}
269274
_ => fail!("not a tymethod"),
270275
};
271-
item
276+
Some(item)
272277
}).collect();
273278
clean::Item {
274279
inner: clean::ImplItem(clean::Impl {

0 commit comments

Comments
 (0)