File tree 3 files changed +14
-0
lines changed
librustdoc/html/static/css
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,10 @@ nav.sub {
484
484
overflow : hidden;
485
485
}
486
486
487
+ .sidebar-links a {
488
+ white-space : nowrap;
489
+ }
490
+
487
491
.sidebar h2 {
488
492
border-bottom : none;
489
493
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")
74
74
assert-false: ".sidebar-elems .crate"
75
75
assert-text: (".sidebar-elems .items > ul > li:nth-child(1)", "Functions")
76
76
assert-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 {
114
114
pub fn foo ( & self ) { }
115
115
}
116
116
}
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