File tree 3 files changed +18
-0
lines changed
librustdoc/html/static/css
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1869,6 +1869,7 @@ in storage.js
1869
1869
}
1870
1870
1871
1871
.variants > .docblock ,
1872
+ .implementors-toggle > .docblock ,
1872
1873
.impl-items > .rustdoc-toggle [open ]: not (: last-child ),
1873
1874
.methods > .rustdoc-toggle [open ]: not (: last-child ),
1874
1875
.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 {
447
447
fn function2 ( ) { }
448
448
}
449
449
}
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