Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 5 pull requests #67555

Closed
wants to merge 23 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f13b8fb
Suggest calling method when first argument is `self`
VirrageS Nov 30, 2019
4b6305c
Add more detailed suggestion
VirrageS Dec 9, 2019
e047368
Add arguments to suggestion method call
VirrageS Dec 21, 2019
89986a3
add partialeq and eq to cursor
Luro02 Dec 11, 2019
4ce2384
Improve JS code a bit by avoid erasing all event handlers
GuillaumeGomez Dec 22, 2019
b677013
Improve code readability
GuillaumeGomez Dec 22, 2019
71ff18f
Fix invalid results showing back
GuillaumeGomez Dec 22, 2019
9273f59
Extend suggestion span to whole method call
VirrageS Dec 22, 2019
101dd7b
Use `is_none` instead of `if let`
JohnTitor Dec 22, 2019
7c485cc
Add test for issue-61747
JohnTitor Dec 22, 2019
96253c2
Add test for issue-66205
JohnTitor Dec 22, 2019
6ec3a63
Add test for issue-66270
JohnTitor Dec 22, 2019
3265dc7
Add test for issue-66868
JohnTitor Dec 22, 2019
40bec99
Add test for issue-67424
JohnTitor Dec 22, 2019
e55ed79
Apply suggestion from Centril
JohnTitor Dec 22, 2019
056dff5
Fix ICE in mir interpretation
oli-obk Dec 23, 2019
ac05c84
Bless test
JohnTitor Dec 23, 2019
5b8df34
Update src/librustc_mir/interpret/place.rs
oli-obk Dec 23, 2019
bc2213e
Rollup merge of #66913 - VirrageS:help-self, r=varkor
Centril Dec 23, 2019
58423a0
Rollup merge of #67233 - Luro02:cursor_traits, r=sfackler
Centril Dec 23, 2019
05c3295
Rollup merge of #67527 - GuillaumeGomez:results-show-too-much, r=kinn…
Centril Dec 23, 2019
286cb14
Rollup merge of #67543 - JohnTitor:regression-tests, r=Dylan-DPC
Centril Dec 23, 2019
4a551ff
Rollup merge of #67546 - oli-obk:slice_pattern_ice, r=varkor
Centril Dec 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve JS code a bit by avoid erasing all event handlers
  • Loading branch information
GuillaumeGomez committed Dec 22, 2019
commit 4ce2384501833127fa3c9e995240d78b07f0ab2f
9 changes: 5 additions & 4 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
@@ -324,6 +324,7 @@ function getSearchElement() {
}

function handleEscape(ev) {
debugger;
var help = getHelpElement();
var search = getSearchElement();
hideModal();
@@ -390,8 +391,8 @@ function getSearchElement() {
return null;
}

document.onkeypress = handleShortcut;
document.onkeydown = handleShortcut;
document.addEventListener("keypress", handleShortcut);
document.addEventListener("keydown", handleShortcut);

var handleSourceHighlight = (function() {
var prev_line_id = 0;
@@ -430,7 +431,7 @@ function getSearchElement() {
}
})();

document.onclick = function(ev) {
document.addEventListener("click", function(ev) {
if (hasClass(ev.target, "collapse-toggle")) {
collapseDocs(ev.target, "toggle");
} else if (hasClass(ev.target.parentNode, "collapse-toggle")) {
@@ -452,7 +453,7 @@ function getSearchElement() {
expandSection(a.hash.replace(/^#/, ""));
}
}
};
});

var x = document.getElementsByClassName("version-selector");
if (x.length > 0) {