File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ function hideThemeButtonState() {
888888
889889 onEachLazy ( document . querySelectorAll ( ".rustdoc-toggle > summary:not(.hideme)" ) , function ( el ) {
890890 el . addEventListener ( "click" , function ( e ) {
891- if ( e . target . tagName != "SUMMARY" ) {
891+ if ( e . target . tagName != "SUMMARY" && e . target . tagName != "A" ) {
892892 e . preventDefault ( ) ;
893893 }
894894 } ) ;
Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ click: "h4.code-header" // This is the position of "pub" in "pub fn a_method"
66assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
77click: ".impl-items .rustdoc-toggle summary::before" // This is the position of "[-]" next to that pub fn.
88assert-attribute-false: (".impl-items .rustdoc-toggle", {"open": ""})
9+
10+ // Click the "Trait" part of "impl Trait" and verify it navigates.
11+ click: "#impl-Trait h3 a:first-of-type"
12+ assert-text: (".fqn .in-band", "Trait lib2::Trait")
You can’t perform that action at this time.
0 commit comments