Skip to content

Rollup of 5 pull requests #107026

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

Merged
merged 19 commits into from
Jan 18, 2023
Merged
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
1f34e11
Lift `T: Sized` bounds from some `strict_provenance` pointer methods
WaffleLapkin Oct 28, 2022
662f1f2
Lift `T: Sized` bounds from some `strict_provenance` `NonNull` methods
WaffleLapkin Nov 7, 2022
ee59533
relax reference requirement on from_abstract_name
mllken Jan 4, 2023
47014b1
Don't do pointer arithmetic on pointers to deallocated memory
the8472 Jan 16, 2023
2d54b7c
add miri regression test
the8472 Jan 17, 2023
6d7e213
rustdoc: remove function `handleClick` that's only used once
notriddle Jan 18, 2023
708b529
rustdoc: stop using deprecated `window.event` when there's an `ev` param
notriddle Jan 18, 2023
b738b06
update cache
lcnr Jan 11, 2023
bf7dbff
instantiate canonical vars eagerly
lcnr Jan 17, 2023
660c283
remove assembly context and impl a bit more
lcnr Jan 17, 2023
9a757d6
add `eq` to `InferCtxtExt`
lcnr Jan 17, 2023
31ac29d
update project to emulate a projection cache
lcnr Jan 17, 2023
415aa66
add note about indirect cycles
lcnr Jan 17, 2023
369f9aa
add comment
lcnr Jan 18, 2023
d6ea99d
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer…
Dylan-DPC Jan 18, 2023
548ae60
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
Dylan-DPC Jan 18, 2023
6f5c3c9
Rollup merge of #106718 - lcnr:solver-cycles, r=compiler-errors
Dylan-DPC Jan 18, 2023
1ff4a12
Rollup merge of #106950 - the8472:fix-splice-miri, r=cuviper
Dylan-DPC Jan 18, 2023
43b1e73
Rollup merge of #107014 - notriddle:notriddle/js-cleanup, r=Guillaume…
Dylan-DPC Jan 18, 2023
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
13 changes: 4 additions & 9 deletions src/librustdoc/html/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,15 +803,10 @@ function loadCss(cssUrl) {
}
});

function handleClick(id, f) {
const elem = document.getElementById(id);
if (elem) {
elem.addEventListener("click", f);
}
const mainElem = document.getElementById(MAIN_ID);
if (mainElem) {
mainElem.addEventListener("click", hideSidebar);
}
handleClick(MAIN_ID, () => {
hideSidebar();
});

onEachLazy(document.querySelectorAll("a[href^='#']"), el => {
// For clicks on internal links (<A> tags with a hash property), we expand the section we're
Expand Down Expand Up @@ -945,7 +940,7 @@ function loadCss(cssUrl) {
return;
}
if (!this.NOTABLE_FORCE_VISIBLE &&
!elemIsInParent(event.relatedTarget, window.CURRENT_NOTABLE_ELEMENT)) {
!elemIsInParent(ev.relatedTarget, window.CURRENT_NOTABLE_ELEMENT)) {
hideNotable(true);
}
};
Expand Down