File tree 3 files changed +13
-0
lines changed
librustdoc/html/static/css
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -925,6 +925,9 @@ body.blur > :not(#help) {
925
925
padding : 0 20px 20px 17px ;;
926
926
}
927
927
928
+ .item-info .stab {
929
+ display : table;
930
+ }
928
931
.stab {
929
932
border-width : 1px ;
930
933
border-style : solid;
Original file line number Diff line number Diff line change
1
+ // This test ensures that the item information don't take 100% of the width if unnecessary.
2
+ goto: file://|DOC_PATH|/lib2/struct.Foo.html
3
+ // We set a fixed size so there is no chance of "random" resize.
4
+ size: (1100, 800)
5
+ // We check that ".item-info" is bigger than its content.
6
+ assert-css: (".item-info", {"width": "807px"})
7
+ assert-css: (".item-info .stab", {"width": "343px"})
Original file line number Diff line number Diff line change 1
1
// ignore-tidy-linelength
2
2
3
+ #![ feature( doc_cfg) ]
4
+
3
5
pub mod module {
4
6
pub mod sub_module {
5
7
pub mod sub_sub_module {
@@ -14,6 +16,7 @@ pub fn foobar() {}
14
16
15
17
pub type Alias = u32 ;
16
18
19
+ #[ doc( cfg( feature = "foo-method" ) ) ]
17
20
pub struct Foo {
18
21
pub x : Alias ,
19
22
}
You can’t perform that action at this time.
0 commit comments