Skip to content

Commit 235fb23

Browse files
authored
Rollup merge of rust-lang#43930 - pravic:es5-revert-shorthand, r=frewsxcv
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.
2 parents 58f3041 + cb4a2d5 commit 235fb23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/html/static/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,9 @@
596596
}
597597

598598
return {
599-
raw,
600-
query,
601-
type,
599+
raw: raw,
600+
query: query,
601+
type: type,
602602
id: query + type
603603
};
604604
}
@@ -837,7 +837,7 @@
837837

838838
searchWords.push(crate);
839839
searchIndex.push({
840-
crate,
840+
crate: crate,
841841
ty: 1, // == ExternCrate
842842
name: crate,
843843
path: "",

0 commit comments

Comments
 (0)