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 12 pull requests #84473

Closed
wants to merge 36 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
30fc601
Tests for field is never read diagnostic
sunjay Mar 11, 2021
321aace
Added suggestion and note for when a field is never used
sunjay Mar 12, 2021
7faaf39
Updating test stderr files
sunjay Mar 12, 2021
789186d
Trying out a new message that works a little better for values *and* …
sunjay Mar 12, 2021
2acd8eb
New shorter diagnostic note that is different for items versus fields
sunjay Mar 13, 2021
3e34eb8
Putting help message only under the identifier that needs to be prefixed
sunjay Mar 25, 2021
539242a
Add a suggestion when using a type alias instead of trait alias
JohnTitor Mar 31, 2021
eea27b8
Mention trait alias on the E0404 note
JohnTitor Mar 31, 2021
569096c
rustdoc: use details tag for trait implementors
jsha Apr 18, 2021
e85f19b
:arrow_up: rust-analyzer
lnicola Apr 20, 2021
f505d61
Remove duplicated fn(Box<[T]>) -> Vec<T>
calebsander Apr 16, 2021
9cabbd0
Move `sys_common::poison` to `sync::poison`
CDirkx Apr 21, 2021
3794fc9
Clean up .gitignore
CDirkx Apr 20, 2021
c0d05d2
Remove "Version control"
CDirkx Apr 20, 2021
bfbf4ce
doc/platform-support: clarify UEFI support
dvdhrm Apr 22, 2021
a03cba3
Prevent control, shift and alt keys to make search input lose focus
GuillaumeGomez Apr 22, 2021
c247055
Get rid of "[+] show undocumented items" toggle on numeric From impls
notriddle Apr 22, 2021
a07bf2e
Fix ICE if original_span(fn_sig) returns a span not in body sourcefile
richkadel Apr 22, 2021
e1d9b3c
Take ItemType instead of TypeKind in record_extern_fqn
jyn514 Apr 23, 2021
3170536
Use ItemType in cache
jyn514 Apr 23, 2021
2df886d
Remove `TypeKind`
jyn514 Apr 23, 2021
26f2705
Remove unused `impl Clean<ItemType> for DefKind`
jyn514 Apr 23, 2021
a344282
Don't repeat `hir::def::DefKind` so much
jyn514 Apr 23, 2021
6c066ab
Fix macro bug in `impl From<DefKind> for ItemType`
jyn514 Apr 23, 2021
ce3773f
Rollup merge of #83004 - sunjay:field-never-read-issue-81658, r=pnkfelix
GuillaumeGomez Apr 23, 2021
78e3463
Rollup merge of #83729 - JohnTitor:issue-43913, r=estebank
GuillaumeGomez Apr 23, 2021
13bcf03
Rollup merge of #84248 - calebsander:refactor/vec-functions, r=Amanieu
GuillaumeGomez Apr 23, 2021
40bd335
Rollup merge of #84320 - jsha:details-implementors, r=Manishearth,Nem…
GuillaumeGomez Apr 23, 2021
e3b90b0
Rollup merge of #84359 - lnicola:rust-analyzer-2021-04-20, r=jonas-sc…
GuillaumeGomez Apr 23, 2021
71b03dc
Rollup merge of #84374 - CDirkx:gitignore, r=Mark-Simulacrum
GuillaumeGomez Apr 23, 2021
94ef942
Rollup merge of #84387 - CDirkx:poison, r=m-ou-se
GuillaumeGomez Apr 23, 2021
75cd8dd
Rollup merge of #84430 - dvdhrm:rw/uefidoc, r=Amanieu
GuillaumeGomez Apr 23, 2021
79a9723
Rollup merge of #84433 - GuillaumeGomez:search-input-blur, r=jsha
GuillaumeGomez Apr 23, 2021
c00bb72
Rollup merge of #84444 - notriddle:num-docs-from-undocumented-items-t…
GuillaumeGomez Apr 23, 2021
d3b4655
Rollup merge of #84456 - richkadel:issue-84421, r=tmandry
GuillaumeGomez Apr 23, 2021
f75bb0c
Rollup merge of #84464 - jyn514:type-kind, r=CraftSpider
GuillaumeGomez Apr 23, 2021
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
9 changes: 6 additions & 3 deletions src/librustdoc/html/static/search.js
Original file line number Diff line number Diff line change
@@ -935,6 +935,9 @@ window.initSearch = function(rawSearchIndex) {
});
current += 1;
});
var SHIFT = 16;
var CTRL = 17;
var ALT = 18;

var currentTab = searchState.currentTab;
if (e.which === 38) { // up
@@ -967,10 +970,10 @@ window.initSearch = function(rawSearchIndex) {
e.preventDefault();
} else if (e.which === 13) { // return
if (actives[currentTab].length) {
document.location.href =
actives[currentTab][0].getElementsByTagName("a")[0].href;
var elem = actives[currentTab][0].getElementsByTagName("a")[0];
document.location.href = elem.href;
}
} else if (e.which === 16) { // shift
} else if ([SHIFT, CTRL, ALT].indexOf(e.which) !== -1) {
// Does nothing, it's just to avoid losing "focus" on the highlighted element.
} else if (actives[currentTab].length > 0) {
removeClass(actives[currentTab][0], "highlighted");