Skip to content

Commit

Permalink
Rollup merge of #43930 - pravic:es5-revert-shorthand, r=frewsxcv
Browse files Browse the repository at this point in the history
Fix ES5 regression with shorthand names.

Reverts 1b6c960.

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.
  • Loading branch information
frewsxcv authored Aug 17, 2017
2 parents 58f3041 + cb4a2d5 commit 235fb23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@
}

return {
raw,
query,
type,
raw: raw,
query: query,
type: type,
id: query + type
};
}
Expand Down Expand Up @@ -837,7 +837,7 @@

searchWords.push(crate);
searchIndex.push({
crate,
crate: crate,
ty: 1, // == ExternCrate
name: crate,
path: "",
Expand Down

0 comments on commit 235fb23

Please sign in to comment.