File tree 3 files changed +22
-2
lines changed
librustdoc/html/static/js
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ window.initSearch = rawSearchIndex => {
119
119
*/
120
120
let searchIndex ;
121
121
let currentResults ;
122
- const ALIASES = { } ;
122
+ const ALIASES = Object . create ( null ) ;
123
123
const params = searchState . getQueryStringParams ( ) ;
124
124
125
125
// Populate search bar with query string search term when provided,
@@ -1953,7 +1953,7 @@ window.initSearch = rawSearchIndex => {
1953
1953
}
1954
1954
1955
1955
if ( aliases ) {
1956
- ALIASES [ crate ] = { } ;
1956
+ ALIASES [ crate ] = Object . create ( null ) ;
1957
1957
for ( const alias_name in aliases ) {
1958
1958
if ( ! hasOwnPropertyRustdoc ( aliases , alias_name ) ) {
1959
1959
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