File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
trunk/src/librustdoc/html Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c5e03bec4d1e7655fc0fd13922fbebb3001f6bac
2
+ refs/heads/master: a925762c3b1c1f7b3a272b7294c0ec9b4eb4fb6d
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5
5
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
Original file line number Diff line number Diff line change @@ -259,8 +259,12 @@ impl<'self> DocFolder for Cache {
259
259
if self . parent_stack . len ( ) == 0 {
260
260
None
261
261
} else {
262
- Some ( ( Some ( * self . parent_stack . last ( ) ) ,
263
- self . stack . as_slice ( ) ) )
262
+ let last = self . parent_stack . last ( ) ;
263
+ let amt = match self . paths . find ( last) {
264
+ Some ( & ( _, "trait" ) ) => self . stack . len ( ) - 1 ,
265
+ Some ( * ) | None => self . stack . len ( ) ,
266
+ } ;
267
+ Some ( ( Some ( * last) , self . stack . slice_to ( amt) ) )
264
268
}
265
269
}
266
270
_ => Some ( ( None , self . stack . as_slice ( ) ) )
You can’t perform that action at this time.
0 commit comments