Skip to content
Closed
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,10 @@ if (!DOMTokenList.prototype.remove) {
// Check for type name and type generics (if any).
function checkType(obj, val, literalSearch) {
var lev_distance = MAX_LEV_DISTANCE + 1;
if (typeof obj === 'undefined' || typeof val === 'undefined' ||
typeof obj[NAME] === 'undefined' || typeof val.name === 'undefined') {
return literalSearch === true ? false : lev_distance;
}
var x;
if (obj[NAME] === val.name) {
if (literalSearch === true) {
Expand Down