mirror of https://github.com/rust-lang/rust.git
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:
commit
235fb23e55
|
@ -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: "",
|
||||
|
|
Loading…
Reference in New Issue