File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
librustdoc/html/static/css Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1869,6 +1869,7 @@ in storage.js
18691869}
18701870
18711871.variants > .docblock ,
1872+ .implementors-toggle > .docblock ,
18721873.impl-items > .rustdoc-toggle [open ]: not (: last-child ),
18731874.methods > .rustdoc-toggle [open ]: not (: last-child ),
18741875.implementors-toggle [open ]: not (: last-child ) {
Original file line number Diff line number Diff line change 1+ // A docblock on an impl must have a margin to separate it from the contents.
2+ goto: "file://" + |DOC_PATH| + "/test_docs/struct.TypeWithImplDoc.html"
3+
4+ // The text is about 24px tall, so if there's a margin, then their position will be >24px apart
5+ compare-elements-position-near-false: (
6+ "#implementations-list > .implementors-toggle > .docblock > p",
7+ "#implementations-list > .implementors-toggle > .impl-items",
8+ {"y": 24}
9+ )
Original file line number Diff line number Diff line change @@ -447,3 +447,11 @@ pub mod trait_members {
447447 fn function2 ( ) { }
448448 }
449449}
450+
451+ pub struct TypeWithImplDoc ;
452+
453+ /// impl doc
454+ impl TypeWithImplDoc {
455+ /// fn doc
456+ pub fn test_fn ( ) { }
457+ }
You can’t perform that action at this time.
0 commit comments