diff options
| author | bors <bors@rust-lang.org> | 2018-09-12 21:20:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-09-12 21:20:05 +0000 |
| commit | f2302daef3608c09e2b50193a64611b18ced86f3 (patch) | |
| tree | 587c28333ce12e085b33c5890e70f4303a162c10 /src/librustdoc/html/static/main.js | |
| parent | 06d2448f1fde4005bddd2f349f9dce4c79adce65 (diff) | |
| parent | 86141797dbeb406a6b0a7c6442cc715d3f7bcc75 (diff) | |
| download | rust-f2302daef3608c09e2b50193a64611b18ced86f3.tar.gz rust-f2302daef3608c09e2b50193a64611b18ced86f3.zip | |
Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavus
Don't show associated const value anymore Part of #44348. Before: <img width="1440" alt="screen shot 2018-08-16 at 00 48 30" src="https://user-images.githubusercontent.com/3050060/44177414-20ef1480-a0ee-11e8-80d4-7caf082cf0de.png"> After: <img width="1440" alt="screen shot 2018-08-16 at 00 48 23" src="https://user-images.githubusercontent.com/3050060/44177417-251b3200-a0ee-11e8-956a-4229275e3342.png"> cc @nox r? @QuietMisdreavus
Diffstat (limited to 'src/librustdoc/html/static/main.js')
| -rw-r--r-- | src/librustdoc/html/static/main.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index a3af621a8a4..a6027a54657 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -2028,7 +2028,8 @@ if (!next) { return; } - if ((checkIfThereAreMethods(next.childNodes) || hasClass(e, 'method')) && + if ((hasClass(e, 'method') || hasClass(e, 'associatedconstant') || + checkIfThereAreMethods(next.childNodes)) && (hasClass(next, 'docblock') || hasClass(e, 'impl') || (hasClass(next, 'stability') && @@ -2037,10 +2038,8 @@ } }; onEach(document.getElementsByClassName('method'), func); + onEach(document.getElementsByClassName('associatedconstant'), func); onEach(document.getElementsByClassName('impl'), func); - onEach(document.getElementsByClassName('impl-items'), function(e) { - onEach(e.getElementsByClassName('associatedconstant'), func); - }); function createToggle(otherMessage, fontSize, extraClass) { var span = document.createElement('span'); |
