Rollup merge of #43930 - pravic:es5-revert-shorthand, r=frewsxcv

Fix ES5 regression with shorthand names.

Reverts 1b6c9605e4.

I appreciate new features and syntax in Rust, but seriously, don't rewrite anything. Especially if this **breaks** documentation of language itself and every crate hosted at docs.rs.
This commit is contained in:
Corey Farwell 2017-08-17 10:44:15 -04:00 committed by GitHub
commit 235fb23e55
1 changed files with 4 additions and 4 deletions

View File

@ -596,9 +596,9 @@
}
return {
raw,
query,
type,
raw: raw,
query: query,
type: type,
id: query + type
};
}
@ -837,7 +837,7 @@
searchWords.push(crate);
searchIndex.push({
crate,
crate: crate,
ty: 1, // == ExternCrate
name: crate,
path: "",