File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
librustdoc/html/static/css Expand file tree Collapse file tree 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) {
925925 padding : 0 20px 20px 17px ;;
926926}
927927
928+ .item-info .stab {
929+ display : table;
930+ }
928931.stab {
929932 border-width : 1px ;
930933 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 11// ignore-tidy-linelength
22
3+ #![ feature( doc_cfg) ]
4+
35pub mod module {
46 pub mod sub_module {
57 pub mod sub_sub_module {
@@ -14,6 +16,7 @@ pub fn foobar() {}
1416
1517pub type Alias = u32 ;
1618
19+ #[ doc( cfg( feature = "foo-method" ) ) ]
1720pub struct Foo {
1821 pub x : Alias ,
1922}
You can’t perform that action at this time.
0 commit comments