File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
librustdoc/html/static/js Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ window.initSearch = rawSearchIndex => {
119119 */
120120 let searchIndex ;
121121 let currentResults ;
122- const ALIASES = { } ;
122+ const ALIASES = Object . create ( null ) ;
123123 const params = searchState . getQueryStringParams ( ) ;
124124
125125 // Populate search bar with query string search term when provided,
@@ -1953,7 +1953,7 @@ window.initSearch = rawSearchIndex => {
19531953 }
19541954
19551955 if ( aliases ) {
1956- ALIASES [ crate ] = { } ;
1956+ ALIASES [ crate ] = Object . create ( null ) ;
19571957 for ( const alias_name in aliases ) {
19581958 if ( ! hasOwnPropertyRustdoc ( aliases , alias_name ) ) {
19591959 continue ;
Original file line number Diff line number Diff line change 1+ // exact-check
2+
3+ const QUERY = [ 'constructor' , '__proto__' ] ;
4+
5+ const EXPECTED = [
6+ {
7+ 'others' : [ ] ,
8+ 'returned' : [ ] ,
9+ 'in_args' : [ ] ,
10+ } ,
11+ {
12+ 'others' : [ ] ,
13+ 'returned' : [ ] ,
14+ 'in_args' : [ ] ,
15+ } ,
16+ ] ;
Original file line number Diff line number Diff line change 1+ // The alias needed to be there to reproduce the bug
2+ // that used to be here.
3+ #[ doc( alias="other_alias" ) ]
4+ pub fn something_else ( ) { }
You can’t perform that action at this time.
0 commit comments