File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
branches/snap-stage3/src/librustdoc/clean Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 0dbfa5f6110d96ea26f124b6dc8487e1bec3da8a
4
+ refs/heads/snap-stage3: f71f97b7c2905c7254f87a9185576939dbbb7010
5
5
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -250,7 +250,12 @@ fn build_impl(tcx: &ty::ctxt, did: ast::DefId) -> clean::Item {
250
250
let associated_trait = csearch:: get_impl_trait ( tcx, did) ;
251
251
let attrs = load_attrs ( tcx, did) ;
252
252
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
+ }
254
259
let mut item = match ty:: method ( tcx, * did) . clean ( ) {
255
260
clean:: Provided ( item) => item,
256
261
clean:: Required ( item) => item,
@@ -268,7 +273,7 @@ fn build_impl(tcx: &ty::ctxt, did: ast::DefId) -> clean::Item {
268
273
}
269
274
_ => fail ! ( "not a tymethod" ) ,
270
275
} ;
271
- item
276
+ Some ( item)
272
277
} ) . collect ( ) ;
273
278
clean:: Item {
274
279
inner : clean:: ImplItem ( clean:: Impl {
You can’t perform that action at this time.
0 commit comments