This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
librustdoc/html/static/css Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,10 @@ nav.sub {
484484 overflow : hidden;
485485}
486486
487+ .sidebar-links a {
488+ white-space : nowrap;
489+ }
490+
487491.sidebar h2 {
488492 border-bottom : none;
489493 font-weight : 500 ;
Original file line number Diff line number Diff line change @@ -74,3 +74,7 @@ assert-text: (".sidebar > .location", "Module sub_sub_module")
7474assert-false: ".sidebar-elems .crate"
7575assert-text: (".sidebar-elems .items > ul > li:nth-child(1)", "Functions")
7676assert-text: ("#functions + .item-table .item-left > a", "foo")
77+
78+ // Links to trait implementations in the sidebar should not wrap even if they are long.
79+ goto: file://|DOC_PATH|/lib2/struct.HasALongTraitWithParams.html
80+ assert-property: (".sidebar-links a", {"offsetHeight": 29})
Original file line number Diff line number Diff line change @@ -114,3 +114,9 @@ pub mod too_long {
114114 pub fn foo ( & self ) { }
115115 }
116116}
117+
118+ pub struct HasALongTraitWithParams { }
119+
120+ pub trait LongTraitWithParamsBananaBananaBanana < T > { }
121+
122+ impl LongTraitWithParamsBananaBananaBanana < usize > for HasALongTraitWithParams { }
You can’t perform that action at this time.
0 commit comments