File tree 4 files changed +22
-2
lines changed
librustdoc/html/static/css 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -1041,7 +1041,7 @@ body.blur > :not(#help) {
1041
1041
}
1042
1042
1043
1043
.item-info .stab {
1044
- display : table ;
1044
+ display : inline-block ;
1045
1045
}
1046
1046
.stab {
1047
1047
padding : 3px ;
@@ -2039,7 +2039,8 @@ details.rustdoc-toggle[open] > summary.hideme::after {
2039
2039
}
2040
2040
2041
2041
.method-toggle summary ,
2042
- .implementors-toggle summary {
2042
+ .implementors-toggle summary ,
2043
+ .impl {
2043
2044
margin-bottom : 0.75em ;
2044
2045
}
2045
2046
Original file line number Diff line number Diff line change @@ -14,3 +14,7 @@ assert: ("#implementors-list .impl:nth-child(2) > a.anchor")
14
14
assert-attribute: ("#implementors-list .impl:nth-child(2)", {"id": "impl-Whatever-1"})
15
15
assert-attribute: ("#implementors-list .impl:nth-child(2) > a.anchor", {"href": "#impl-Whatever-1"})
16
16
assert: "#implementors-list .impl:nth-child(2) > .code-header.in-band"
17
+
18
+ goto: file://|DOC_PATH|/test_docs/struct.HasEmptyTraits.html
19
+ compare-elements-position-near-false: ("#impl-EmptyTrait1", "#impl-EmptyTrait2", {"y": 30})
20
+ compare-elements-position-near: ("#impl-EmptyTrait3 h3", "#impl-EmptyTrait3 .item-info", {"y": 30})
Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ build = "build.rs"
7
7
8
8
[lib ]
9
9
path = " lib.rs"
10
+
11
+ [features ]
12
+ default = [" some-feature" ]
13
+ some-feature = []
Original file line number Diff line number Diff line change @@ -260,3 +260,14 @@ impl HeavilyDocumentedUnion {
260
260
macro_rules! heavily_documented_macro {
261
261
( ) => { } ;
262
262
}
263
+
264
+ pub trait EmptyTrait1 { }
265
+ pub trait EmptyTrait2 { }
266
+ pub trait EmptyTrait3 { }
267
+
268
+ pub struct HasEmptyTraits { }
269
+
270
+ impl EmptyTrait1 for HasEmptyTraits { }
271
+ impl EmptyTrait2 for HasEmptyTraits { }
272
+ #[ doc( cfg( feature = "some-feature" ) ) ]
273
+ impl EmptyTrait3 for HasEmptyTraits { }
You can’t perform that action at this time.
0 commit comments